docs(env): clarify env are statically replaced (#16553)

This commit is contained in:
Bjorn Lu 2024-04-29 17:23:33 +08:00 committed by GitHub
parent b7ddfae5f8
commit f22240640d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
## Env Variables
Vite exposes env variables on the special **`import.meta.env`** object. Some built-in variables are available in all cases:
Vite exposes env variables on the special **`import.meta.env`** object, which are statically replaced at build time. Some built-in variables are available in all cases:
- **`import.meta.env.MODE`**: {string} the [mode](#modes) the app is running in.