diff options
Diffstat (limited to '.changeset/nine-donuts-confess.md')
-rw-r--r-- | .changeset/nine-donuts-confess.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.changeset/nine-donuts-confess.md b/.changeset/nine-donuts-confess.md new file mode 100644 index 000000000..7ae040c23 --- /dev/null +++ b/.changeset/nine-donuts-confess.md @@ -0,0 +1,9 @@ +--- +'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. |