summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorGravatar Ludovico Fischer <43557+ludofischer@users.noreply.github.com> 2021-11-29 21:39:38 +0100
committerGravatar GitHub <noreply@github.com> 2021-11-29 13:39:38 -0700
commit0f5e89f694718242816d752ff38f4fb4f2e8e50a (patch)
treee6b5031a37df1cea3b7309246054843ff74f21d4 /docs/reference
parentc1d792dcdbca943087423dcb4b4e0a41540a86da (diff)
downloadastro-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/reference')
-rw-r--r--docs/reference/api-reference.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/reference/api-reference.md b/docs/reference/api-reference.md
index e997a1859..ae1cb2e9b 100644
--- a/docs/reference/api-reference.md
+++ b/docs/reference/api-reference.md
@@ -180,7 +180,7 @@ Astro will generate an RSS 2.0 feed at `/feed/[collection].xml` (for example, `/
## `import.meta`
-All ESM modules include a `import.meta` property. Astro adds `import.meta.env` through [Snowpack](https://www.snowpack.dev/).
+All ESM modules include a `import.meta` property. Astro adds `import.meta.env` through [Vite](https://vitejs.dev/guide/env-and-mode.html).
**import.meta.env.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: