
NEXT_PUBLIC Env Variable in Docker: Rebuild, Don't Restart
Next.js replaces a NEXT_PUBLIC env variable with a literal at next build, in server code as well as the browser, so restarting a Docker container with a new value changes nothing.
0%
0000000
0x00
Posts tagged Build Pipeline on abchaudary.me.

Next.js replaces a NEXT_PUBLIC env variable with a literal at next build, in server code as well as the browser, so restarting a Docker container with a new value changes nothing.