diff options
author | 2021-11-29 21:39:38 +0100 | |
---|---|---|
committer | 2021-11-29 13:39:38 -0700 | |
commit | 0f5e89f694718242816d752ff38f4fb4f2e8e50a (patch) | |
tree | e6b5031a37df1cea3b7309246054843ff74f21d4 /docs/src/pages/reference/api-reference.md | |
parent | c1d792dcdbca943087423dcb4b4e0a41540a86da (diff) | |
download | astro-0f5e89f694718242816d752ff38f4fb4f2e8e50a.tar.gz astro-0f5e89f694718242816d752ff38f4fb4f2e8e50a.tar.zst astro-0f5e89f694718242816d752ff38f4fb4f2e8e50a.zip |
docs: update some Snowpack references to Vite (#2035)
* docs: update some Snowpack references to Vite
Vite has replaced Snowpack in 0.21.
* Apply suggestions from code review
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
Diffstat (limited to 'docs/src/pages/reference/api-reference.md')
-rw-r--r-- | docs/src/pages/reference/api-reference.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index ad0afd584..4722da822 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -277,7 +277,7 @@ interface RSSArgument { > In this section we use `[dot]` to mean `.`. This is because of a bug in our build engine that is rewriting `import[dot]meta[dot]env` if we use `.` instead of `[dot]`. -All ESM modules include a `import.meta` property. Astro adds `import[dot]meta[dot]env` through [Snowpack](https://www.snowpack.dev/). +All ESM modules include a `import.meta` property. Astro adds `import[dot]meta[dot]env` through [Vite](https://vitejs.dev/guide/env-and-mode.html). **`import[dot]meta[dot]env[dot]SSR`** can be used to know when rendering on the server. Sometimes you might want different logic, for example a component that should only be rendered in the client: |