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
astro
^1.0.0-beta.47
None
pnpm, npm
Mac
When building a project the vite.envDir is ignored, it works as expected using the dev server.
vite.envDir
in the stackblitz repro
npm run dev
npm run build && npm run preview
undefined
.env.local
astro.config.mjs
https://stackblitz.com/edit/github-tcuzrc-mzkyt7?on=stackblitz
The text was updated successfully, but these errors were encountered:
Thanks for the simple repro @nrgnrg! Can confirm this occurs without the .local extension as well.
.local
Sorry, something went wrong.
Bumping up priority on anything that is a difference between dev and build!
Hello. I cannot reproduce this issue in the latest version of Astro. I suspect this was fixed by #4344
Thank you for reporting this issue! If this rehappen to you, please open another issue and we'll take a look!
Princesseuh
No branches or pull requests
What version of
astro
are you using?^1.0.0-beta.47
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm, npm
What operating system are you using?
Mac
Describe the Bug
When building a project the
vite.envDir
is ignored, it works as expected using the dev server.in the stackblitz repro
npm run dev
-> it works, env printed to console and UInpm run build && npm run preview
and all vars areundefined
.env.local
to same folder asastro.config.mjs
npm run build && npm run preview
and it worksLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-tcuzrc-mzkyt7?on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: