postdoc preview
Builds the site and serves the output, so you can check the production build before you deploy it.
Options:
--skip-build- serves the existing output without building it again.--port <port>- serves the site on this port, and fails if it's taken. Without it, Vite's preview port 4173 is used, or the next free one.--out-dir <dir>- builds into and serves this directory instead of the configuredoutputPath.--host [host]- listens on all network interfaces, or on the given host.--open [path]- opens the site in your browser when the server starts, optionally at the given path.
Example
sh
npx postdoc preview --open