Skip to content

Commit

Permalink
docs: serve runs in development mode (#6610)
Browse files Browse the repository at this point in the history
according to CHANGELOG, `serve` and `dev` both run in development mode.
  • Loading branch information
Turmiht committed Jan 27, 2022
1 parent 6b6ad70 commit 9631e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/env-and-mode.md
Expand Up @@ -83,7 +83,7 @@ interface ImportMeta {

## Modes

By default, the dev server (`dev` command) runs in `development` mode and the `build` and `serve` commands run in `production` mode.
By default, the dev server (`dev` command) runs in `development` mode and the `build` command run in `production` mode.

This means when running `vite build`, it will load the env variables from `.env.production` if there is one:

Expand Down

0 comments on commit 9631e6a

Please sign in to comment.