From a6c7cd1183d433f0dda7a5cc760a722b411a9e82 Mon Sep 17 00:00:00 2001 From: Sam Ko Date: Wed, 25 Sep 2024 21:34:39 -0700 Subject: [PATCH] docs(cli): add mention of default port with experimental-https (#70497) ## Why? There is no mention of what the default port is when you `next dev --experimental-https`. x-ref: https://x.com/rauchg/status/1839092783392632867 --------- Co-authored-by: Will Binns-Smith --- docs/02-app/02-api-reference/06-cli/next.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/02-app/02-api-reference/06-cli/next.mdx b/docs/02-app/02-api-reference/06-cli/next.mdx index 13e4aef860e148..e5c6df988754ef 100644 --- a/docs/02-app/02-api-reference/06-cli/next.mdx +++ b/docs/02-app/02-api-reference/06-cli/next.mdx @@ -207,6 +207,8 @@ For certain use cases like webhooks or authentication, you can use [HTTPS](https next dev --experimental-https ``` +With the generated certificate, the Next.js development server will exist at `https://localhost:3000`. The default port `3000` is used unless a port is specified with `-p`, `--port`, or `PORT`. + You can also provide a custom certificate and key with `--experimental-https-key` and `--experimental-https-cert`. Optionally, you can provide a custom CA certificate with `--experimental-https-ca` as well. ```bash filename="Terminal"