mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
39cbe50085
* chore(examples): add env-vars example * feat: improve import.meta.env support * chore: add changeset * test: update astro-envs test * refactor: cleanup code based on feedback * fix: import.meta guard * fix: update memory test threshold to 10%
417 B
417 B
astro |
---|
patch |
Improve suppport for import.meta.env
.
Prior to this change, all variables defined in .env
files had to include the PUBLIC_
prefix, meaning that they could potentially be visible to the client if referenced.
Now, Astro includes any referenced variables defined in .env
files on import.meta.env
during server-side rendering, but only referenced PUBLIC_
variables on the client.