mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 15:50:32 +00:00
docs: document fallback for runtime config (#4461)
This commit is contained in:
parent
d0ae5851e4
commit
8d92a9cdba
@ -37,7 +37,7 @@ Nuxt CLI has built-in [dotenv](https://github.com/motdotla/dotenv) support.
|
||||
|
||||
In addition to any process environment variables, if you have a `.env` file in your project root directory, it will be automatically loaded into `process.env` and accessible within your `nuxt.config` file and modules.
|
||||
|
||||
Runtime config values are automatically replaced by matching environment variables at runtime.
|
||||
Runtime config values are automatically replaced by matching environment variables at runtime. For this to work, you _must_ have a fallback value (which can just be an empty string) defined in your `nuxt.config`.
|
||||
|
||||
**Example:**
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user