Dynamic next.config.js #60131
Unanswered
Amerehei
asked this question in
App Router
Replies: 2 comments 1 reply
-
I think maybe you can mount the next.config.js file from the host to container. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm facing the same issue, but I'd like to add that this is only a problem when we set |
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
-
I use
process.env
to configremotePatterns
in thenext.config.js
.I would like to use my docker image in different environment. When I build the next.js app, next.js embed the value of
process.env
to my standalone server.js file at the build time. How can we change the behaviour and keep the ENV for in the runtime?How can we dynamically change
next.config.js
for different env?Beta Was this translation helpful? Give feedback.
All reactions