Skip to content

Commit

Permalink
docs: update env-and-mode.md (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric25 authored Jan 19, 2021
1 parent 3d09b50 commit 9225c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/env-and-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Vite exposes env variables on the special **`import.meta.env`** object. Some bui

### Production Replacement

During production, these env variables are **statically replaced**. It therefore necessary to always reference them using the full static string. For example, dynamic key access like `import.meta.env[key]` will not work.
During production, these env variables are **statically replaced**. It is therefore necessary to always reference them using the full static string. For example, dynamic key access like `import.meta.env[key]` will not work.

It will also replace these strings appearing in JavaScript strings and Vue templates. This should be a rare case, but it can be unintended. There are ways to work around this behavior:

Expand Down

0 comments on commit 9225c5f

Please sign in to comment.