docs: fix typo of env demo (#8129)

closed #8125
This commit is contained in:
陆伯言
2026-07-08 08:38:06 +08:00
committed by GitHub
parent 75c3a7214b
commit 88918aad10
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ The rules are consistent with [Vite Env Variables and Modes](https://vitejs.dev/
- Only variables starting with `VITE_` will be embedded into the client-side package. You can access them in the project code like this:
```ts
console.log(import.meta.env.VITE_PROT);
console.log(import.meta.env.VITE_PORT);
```
- Variables starting with `VITE_GLOB_*` will be added to the `_app-config-{version}-{hash}.js` configuration file during packaging.