Next.js Discord

Discord Forum

self hosting next js, cant read env secrets

Answered
DieZitrone posted this in #help-forum
Open in Discord
Hey, I am trying to host nextjs with dokku. Everything works good, but it seems the enviroment variables set with dokku cant be read. Can they just be read from a file in this case or is there something I need to set up?:all_the_things:
Answered by DieZitrone
I fixed it, needed to rebuild
View full answer

4 Replies

How are deploying to Dokku?
European sprat
If it's Docker based then you need to upgrade nextjs
But that might break other stuff
I fixed it, needed to rebuild
Answer