mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: hint to use runtime config (#27859)
This commit is contained in:
parent
9037b0d2c8
commit
4c35ff6e7d
@ -33,6 +33,10 @@ npx nuxi dev --dotenv .env.local
|
|||||||
|
|
||||||
When updating `.env` in development mode, the Nuxt instance is automatically restarted to apply new values to the `process.env`.
|
When updating `.env` in development mode, the Nuxt instance is automatically restarted to apply new values to the `process.env`.
|
||||||
|
|
||||||
|
::important
|
||||||
|
In your application code, you should use [Runtime Config](https://nuxt.com/docs/guide/going-further/runtime-config) instead of plain env variables.
|
||||||
|
::
|
||||||
|
|
||||||
## Production
|
## Production
|
||||||
|
|
||||||
**After your server is built**, you are responsible for setting environment variables when you run the server.
|
**After your server is built**, you are responsible for setting environment variables when you run the server.
|
||||||
|
Loading…
Reference in New Issue
Block a user