-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
🐛 BUG: process.env.XXX not accessible #2244
Comments
That is very strange! I cleaned up the example a little bit: https://stackblitz.com/edit/github-haaaff-nxqfrw?file=src%2Fpages%2Findex.astro&on=stackblitz |
Yes, indeed it caused us some trouble because it was correctly processed before our migration from the 0.20.x to 0.21.x |
I think this is a Vite limitation. Vite does support |
process.env.NODE_ENV can be development, but NODE_DEBUG is undefinded |
Moved the Vite upgrade to #2424. Once that lands this will be unblocked. |
#2424 landed! Closing this out since it should be supported now that we are using Vite 2.7 🥳 |
Re-opening this! It looks like you can access |
OK, I did some more testing! You should be able to access I just opened #2612 to expose all variables defined in |
What version of
astro
are you using?0.21.13
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
Unable to access process.env.XXX directly.
XXX=true astro build/dev
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-haaaff?file=src%2Fpages%2Findex.astro&on=stackblitz
The text was updated successfully, but these errors were encountered: