Skip to content

Commit 8a6586a

Browse files
authored
docs(cli): document vite preview with more information (#20888)
1 parent 3dfe8a1 commit 8a6586a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ vite optimize [root]
106106

107107
Locally preview the production build. Do not use this as a production server as it's not designed for it.
108108

109+
This command starts a server in the build directory (by default `dist`). Run `vite build` beforehand to ensure that the build directory is up-to-date. Depending on the project's configured [`appType`](/config/shared-options.html#apptype), it makes use of certain middleware.
110+
109111
#### Usage
110112

111113
```bash

0 commit comments

Comments
 (0)