0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/.changeset/wise-months-serve.md
Matthew Phillips fad6bd0936
Use of PUBLIC_ environment variables (#2044)
* Enable client-side JS to read env variables via PUBLIC_

* Fixes use of PUBLIC_ in client-JS
2021-11-29 14:22:46 -05:00

266 B

astro
patch

Fixes use of PUBLIC_ to reference env vars

Previously PUBLIC_ worked in server-only components such as .astro components. However if you had a client-side component you had to use VITE_. This was a bug with our build that is now fixed.