Skip to content

Commit

Permalink
docs: clarify when import.meta.env.PROD is true
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Sep 2, 2023
1 parent 11dab7f commit 8cbee40
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 は環境変数を特別な **`import.meta.env`** オブジェクトに公

- **`import.meta.env.BASE_URL`**: {string} アプリが配信されているベース URL。これは [`base` 設定オプション](/config/shared-options.md#base) によって決まります。

- **`import.meta.env.PROD`**: {boolean} アプリがプロダクションで動作しているかどうか。
- **`import.meta.env.PROD`**: {boolean} アプリがプロダクションで動作しているかどうか`NODE_ENV='production'` で開発サーバーを起動するか `NODE_ENV='production'` でビルドしたアプリを実行する)

- **`import.meta.env.DEV`**: {boolean} アプリが開発で動作しているかどうか(常に `import.meta.env.PROD` の逆)

Expand Down

0 comments on commit 8cbee40

Please sign in to comment.