docs: hint to use runtime config (#27859)

This commit is contained in:
Alexander Lichter 2024-06-27 12:03:14 +02:00 committed by Daniel Roe
parent 9037b0d2c8
commit 4c35ff6e7d
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -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`.
::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
**After your server is built**, you are responsible for setting environment variables when you run the server.