mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
docs(env): clarify env are statically replaced (#16553)
This commit is contained in:
parent
b7ddfae5f8
commit
f22240640d
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user