mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
docs(api): update commands with new NODE_ENV
behavior (#5739)
This commit is contained in:
parent
8ffe2a33a7
commit
aa9950cfb3
@ -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`.
|
||||
|
@ -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`.
|
||||
|
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user