--

ah ok. so i deploy using docker on dokku. So the build happens on the production server (with production env vars) during the docker file run and it uses the correct env vars. Thats why I never saw this.

It's a bit different to normal node for sure. I think you could write whatever env vars you needed on production to .env.local file before starting the server.

I'll update the article. Thanks again for the comment!

--

--

Darragh O Riordan
Darragh O Riordan

Written by Darragh O Riordan

I live and work in Sydney, Australia enjoying the mountains and the ocean. I build and support happy teams that create high quality software for the web!

No responses yet