Skip to content

Commit

Permalink
docs: clarify when import.meta.env.PROD is true (#14124)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Aug 16, 2023
1 parent 57e5d40 commit d0e001f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/env-and-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Vite exposes env variables on the special **`import.meta.env`** object. Some bui

- **`import.meta.env.BASE_URL`**: {string} the base url the app is being served from. This is determined by the [`base` config option](/config/shared-options.md#base).

- **`import.meta.env.PROD`**: {boolean} whether the app is running in production.
- **`import.meta.env.PROD`**: {boolean} whether the app is running in production (running the dev server with `NODE_ENV='production'` or running an app built with `NODE_ENV='production'`).

- **`import.meta.env.DEV`**: {boolean} whether the app is running in development (always the opposite of `import.meta.env.PROD`)

Expand Down

0 comments on commit d0e001f

Please sign in to comment.