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:
resolved - someone changed the package.json scripts, and it was running next dev instead of next start
Jump to solution
8 Replies
Percy
Percy15mo ago
Project ID: 98440440-5311-4573-a36c-07af5ac1c8d9
Cara Kessler
Cara Kessler15mo ago
98440440-5311-4573-a36c-07af5ac1c8d9
Brody
Brody15mo ago
have you tried setting NODE_ENV yourself through the service variables?
Cara Kessler
Cara Kessler15mo ago
how would i do that? just create a NODE_ENV variable?
Brody
Brody15mo ago
yep
Cara Kessler
Cara Kessler15mo ago
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
Brody
Brody15mo ago
well that is only a warning after all
Solution
Cara Kessler
Cara Kessler15mo ago
resolved - someone changed the package.json scripts, and it was running next dev instead of next start
Want results from more Discord servers?
Add your server