Dynamic Environment File #58585
Unanswered
beyondsensor
asked this question in
App Router
Replies: 1 comment
-
Have you ever received an answer or found a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My Issue
Hi there, I am using NextJS to build my web application and I dockerized my project, so that I can easily deploy it for my projects. I am running into an issue where my environment variables is not taken in from docker, as I understood that this is because next build actually embeds the environment variables into the codes during build time.
My Current Workaround
As part of my docker container, I had to use next dev to run my service, (instead of run start). By doing so, the environment variables will be read from my instance, and updated accordingly.
This is my docker build scripts
This is my docker compose script
My Question
Beta Was this translation helpful? Give feedback.
All reactions