Errors on Deploy for NextJS app
I am deploying a nextjs app and I believe what is happening is that my env cant be read by the app.
This typeerror happens when the auth provider I am using (Clerk) cant get the key from the env.
I am not doing anything manually with the NODE_ENV and it just started throwing this "non-standard NODE_ENV" error. I cant repro it locally - everything is working fine locally.
I am not sure where to go from here - looking for any troubleshooting advice!!
Solution:Jump to solution
resolved - someone changed the package.json scripts, and it was running next dev instead of next start
8 Replies
Project ID:
98440440-5311-4573-a36c-07af5ac1c8d9
98440440-5311-4573-a36c-07af5ac1c8d9
have you tried setting
NODE_ENV
yourself through the service variables?how would i do that? just create a NODE_ENV variable?
yep
just did that - will see what happens when i deploy
there are 20 other vars there as well but i verified nothing changed there either
didnt wor k
well that is only a warning after all
Solution
resolved - someone changed the package.json scripts, and it was running next dev instead of next start