DEV Community

Discussion on: NextJS API working on locals but not working on production

Collapse
 
unyime profile image
Unyime

I'm getting a 500 on production but not on local. What part should I screenshot

Thread Thread
 
rutikwankhade profile image
Rutik Wankhade

hey did you fix it? how?

Thread Thread
 
unyime profile image
Unyime

To be honest it depends on how you're calling it, it could be a number of things.

  • If you're using env variables check well

  • Syntax errors from your request adapter to how you're calling them

Mine was an issue from my env variable. The API was not spelt well.

I could offer more assistance if you'd like