Apr 24, 2023
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!