diff --git a/docs/config/index.md b/docs/config/index.md index befd86cef..b380b4b59 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -103,7 +103,7 @@ Note that Vite doesn't load `.env` files by default as the files to load can onl ```js twoslash import { defineConfig, loadEnv } from 'vite' -export default defineConfig(({ command, mode }) => { +export default defineConfig(({ mode }) => { // Load env file based on `mode` in the current working directory. // Set the third parameter to '' to load all env regardless of the // `VITE_` prefix.