We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"next": "^14.2.12", "node": "20.17.0",
I am using page router so editr _document.tsx
<Html> ... <PublicEnvScript /> ... </Html>
and build project and deploy
local (build files) .env : NEXT_PUBLIC_FOO=foo server machine (build files) .env : NEXT_PUBLIC_FOO=bar
browser console (window['__ENV']) result is NEXT_PUBLIC_FOO=foo
I want NEXT_PUBLIC_FOO=bar (using runtime's env file)
The text was updated successfully, but these errors were encountered:
After running npm run build, in the created assets
npm run build
In 404.html, 500.html, index.html Contains the contents of .env at the time of build. (Probably an area called SSG)
change .env and If you start again Changed env values are not reflected. Isn't this kind of use the purpose of this library?
https://github.com/sacru2red/next-runtime-env-page-router
Sorry, something went wrong.
ref #132
No branches or pull requests
"next": "^14.2.12",
"node": "20.17.0",
I am using page router
so editr _document.tsx
and build project and deploy
local (build files) .env : NEXT_PUBLIC_FOO=foo
server machine (build files) .env : NEXT_PUBLIC_FOO=bar
browser console (window['__ENV']) result is NEXT_PUBLIC_FOO=foo
I want NEXT_PUBLIC_FOO=bar (using runtime's env file)
The text was updated successfully, but these errors were encountered: