mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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.
|
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:**
|
**Example:**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user