Dynamic next.config.js #60131
Replies: 3 comments 3 replies
-
|
I think maybe you can mount the next.config.js file from the host to container. |
Beta Was this translation helpful? Give feedback.
-
|
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.
-
|
I'm currently messing with post-processing the generated But it is stuff like this which always makes me regret choosing Next.js in a project. Coming from Laravel where everything can be configured dynamically at runtime, Next.js is such a pain to work with. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I use
process.envto configremotePatternsin 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.envto 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.jsfor different env?Beta Was this translation helpful? Give feedback.
All reactions