Skip to content

Commit

Permalink
docs(api): update commands with new NODE_ENV behavior (nuxt#5739)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Jul 6, 2022
1 parent 8ffe2a3 commit aa9950c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/content/3.api/5.commands/analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 1 addition & 1 deletion docs/content/3.api/5.commands/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 1 addition & 1 deletion docs/content/3.api/5.commands/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit aa9950c

Please sign in to comment.