mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
docs: fix example command (#30628)
This commit is contained in:
parent
3bab4d1170
commit
4cdf3d1c6c
@ -28,7 +28,7 @@ Note that removing a variable from `.env` or removing the `.env` file entirely w
|
|||||||
If you want to use a different file - for example, to use `.env.local` or `.env.production` - you can do so by passing the `--dotenv` flag when using `nuxi`.
|
If you want to use a different file - for example, to use `.env.local` or `.env.production` - you can do so by passing the `--dotenv` flag when using `nuxi`.
|
||||||
|
|
||||||
```bash [Terminal]
|
```bash [Terminal]
|
||||||
npx nuxi dev --dotenv .env.local
|
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`.
|
||||||
|
Loading…
Reference in New Issue
Block a user