mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
fad6bd0936
* Enable client-side JS to read env variables via PUBLIC_ * Fixes use of PUBLIC_ in client-JS
266 B
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.