Next.js Discord

Discord Forum

My dynamic pages locally work fine, but not when deployed

Unanswered
Wool sower gall maker posted this in #help-forum
Open in Discord
Wool sower gall makerOP
I have .env set correctly, locally both dev and built project runs fine, but once I deploy and go to pages like profile where data needs to be fetched, i get error 307 temporary redirects. Not sure where to look to solve this problem?

3 Replies

Netherland Dwarf
Did you add the .env on your vercel?
@Netherland Dwarf Did you add the .env on your vercel?
Wool sower gall makerOP
its on netlify, but they have option to set env variables
but all i host in env is server url