diff options
author | 2022-02-18 16:06:56 -0600 | |
---|---|---|
committer | 2022-02-18 16:06:56 -0600 | |
commit | 39cbe5008549517d9360bc7c473793523c0c9207 (patch) | |
tree | fe6b2e7c6bf6defbbc80d7e0eb45341fd3c18881 /examples/env-vars/README.md | |
parent | 37d4dd8d57d5423f2d099f9eb81b5b41b6d69403 (diff) | |
download | astro-39cbe5008549517d9360bc7c473793523c0c9207.tar.gz astro-39cbe5008549517d9360bc7c473793523c0c9207.tar.zst astro-39cbe5008549517d9360bc7c473793523c0c9207.zip |
Expose private `.env` variables to `import.meta.env` during SSR (#2612)
* 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%
Diffstat (limited to 'examples/env-vars/README.md')
-rw-r--r-- | examples/env-vars/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/env-vars/README.md b/examples/env-vars/README.md new file mode 100644 index 000000000..686ccd77f --- /dev/null +++ b/examples/env-vars/README.md @@ -0,0 +1,9 @@ +# Astro Starter Kit: Environment Variables + +``` +npm init astro -- --template env-vars +``` + +[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/env-vars) + +This example showcases Astro's support for Environment Variables. Please see Vite's [Env Variables and Modes](https://vitejs.dev/guide/env-and-mode.html) guide for more information. |