From 96cedc1c09ad951cdd6f8b143a159c484e632ead Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Sun, 22 Aug 2021 01:19:37 +0800 Subject: [PATCH] wip: fix typo --- docs/config/index.md | 2 +- packages/vite/src/node/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/index.md b/docs/config/index.md index 43c616da0b7012..48e2ec69d0dea0 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -338,7 +338,7 @@ export default defineConfig(async ({ command, mode }) => { - **Type:** `string | string[]` - **Default:** `VITE_` - Env variables starts `envVariblePrefix` will be exposed to your client source code via import.meta.env. + Env variables starts with `envVariblePrefix` will be exposed to your client source code via import.meta.env. :::warning SECURITY NOTES diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index e5d1a30c0901df..2b67e79c8e28c6 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -172,7 +172,7 @@ export interface UserConfig { */ envDir?: string /** - * Env variables starts `envVariblePrefix` will be exposed to your client source code via import.meta.env. + * Env variables starts with `envVariblePrefix` will be exposed to your client source code via import.meta.env. * @default 'VITE_' */ envVariblePrefix?: string | string[]