docs: fix typo in example command (#31112)

This commit is contained in:
Anthony Fu 2025-02-25 14:46:32 +08:00 committed by Daniel Roe
parent 438bfab612
commit 87b9ff4ecc
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -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`.
```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`.