docs(api): update commands with new NODE_ENV behavior (#5739)

This commit is contained in:
Daniel Roe 2022-07-06 19:39:02 +01:00 committed by GitHub
parent 8ffe2a33a7
commit aa9950cfb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -11,3 +11,5 @@ The `analyze` command builds Nuxt and analyzes the production bundle (experiment
Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The directory of the target application.
This command sets `process.env.NODE_ENV` to `production`.

View File

@ -11,4 +11,4 @@ Option | Default | Description
`rootDir` | `.` | The root directory of the application to bundle.
`prerender` | `false` | Pre-render every route of your application. (**note:** This is an experimental flag. The behavior might be changed.)
This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
This command sets `process.env.NODE_ENV` to `production`.

View File

@ -20,4 +20,4 @@ Option | Default | Description
The port and host can also be set via NUXT_PORT, PORT, NUXT_HOST or HOST environment variables.
This command sets `process.env.NODE_ENV` to `development`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
This command sets `process.env.NODE_ENV` to `development`.