You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d55836
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,14 +207,15 @@ Note that environment variables defined with `--env.VAR_NAME` can only be access
207
207
208
208
## `--env-file <file>`
209
209
210
-
Load environment variables from a file. When used together with `--env`, variables in `--env` take precedence.
210
+
Load environment variables from a file. The flag can be repeated to load several files: later files override earlier ones, and missing files are skipped. When used together with `--env`, variables in `--env` take precedence.
211
211
212
212
:::tip
213
213
To prevent accidental exposure of sensitive information, only environment variables prefixed with `TSDOWN_` are injected by default. You can customize this behavior using the [`--env-prefix`](#env-prefix) flag.
"description": "Path(s) to env files providing compile-time env variables.\n\nFiles are loaded in order, so later files override earlier ones.\nMissing files are skipped."
58
61
},
59
62
"envPrefix": {
60
63
"anyOf": [
@@ -418,8 +421,11 @@
418
421
"default": {}
419
422
},
420
423
"envFile": {
421
-
"type": "string",
422
-
"description": "Path to env file providing compile-time env variables."
"description": "Path(s) to env files providing compile-time env variables.\n\nFiles are loaded in order, so later files override earlier ones.\nMissing files are skipped."
Copy file name to clipboardExpand all lines: src/config/options.ts
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -183,23 +183,29 @@ export async function resolveUserConfig(
183
183
'`envPrefix` includes an empty string; filtering is disabled. All environment variables from the env file and process.env will be injected into the build. Ensure this is intended to avoid accidental leakage of sensitive information.',
0 commit comments