Skip to content

Twitter oauth2 login doesn't work in production even if it works locally. #12974

Answered by cupid20103
cupid20103 asked this question in Help
Discussion options

You must be logged in to vote

I've solved it myself.

In the previous version, I added postinstall command on the package.json like this

"postinall": "prisma generate"

But I removed it and changed original build command like this

"build": "prisma generate && next build"

So for now, everything works well!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cupid20103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant