From 234fb5d995e6aa1c9221708718d92597d3c85141 Mon Sep 17 00:00:00 2001 From: Saeid Zareie <65568529+Saeid-Za@users.noreply.github.com> Date: Thu, 20 Feb 2025 19:46:39 +0330 Subject: [PATCH] docs: add `port` option to preview command (#30999) --- docs/3.api/4.commands/preview.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/3.api/4.commands/preview.md b/docs/3.api/4.commands/preview.md index 2548d8b7a5..7ae25268fe 100644 --- a/docs/3.api/4.commands/preview.md +++ b/docs/3.api/4.commands/preview.md @@ -10,7 +10,7 @@ links: ```bash [Terminal] -npx nuxi preview [ROOTDIR] [--cwd=] [--logLevel=] [--envName] [--dotenv] +npx nuxi preview [ROOTDIR] [--cwd=] [--logLevel=] [--envName] [--dotenv] [-p, --port] ``` @@ -33,6 +33,7 @@ Option | Default | Description `--logLevel=` | | Specify build-time log level `--envName` | | The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server) `--dotenv` | | Path to `.env` file to load, relative to the root directory +`-p, --port` | | Port to listen on (default: `NUXT_PORT \|\| NITRO_PORT \|\| PORT`) This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.