Next.js Discord

Discord Forum

Dynamic env into Docker images

Answered
Northern Beardless-Tyrannulet posted this in #help-forum
Open in Discord
Northern Beardless-TyrannuletOP
I have a Next js app and also i have created a docker image for that. The problem is that I'm using this image in the dev stage and prod stage. So i was wondering if there is any way to make the env inside the app to change the env in runtime?
So i can set different values for dev and stagging. Please help.

2 Replies

Asian black bear
Answer
Northern Beardless-TyrannuletOP
@Asian black bear Thanks a lot