From e77e31348ba7beadb098cdadf56e6ca3d7680262 Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Wed, 25 Sep 2024 17:37:52 -0700 Subject: [PATCH 1/2] Base JS runtime for builds (#70169) --- 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 13e4aef860e14..03cd25c13a02a 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`. A default port of `3000` is used unless a port option is additionally 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" From f0b103772f4a8b5b8ae330d1dfbce5fe5961ef63 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 25 Sep 2024 19:00:14 -0700 Subject: [PATCH 2/2] docs(cli): clarify mention of default port with experimental-https --- docs/02-app/02-api-reference/06-cli/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 03cd25c13a02a..e5c6df988754e 100644 --- a/docs/02-app/02-api-reference/06-cli/next.mdx +++ b/docs/02-app/02-api-reference/06-cli/next.mdx @@ -207,7 +207,7 @@ 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`. A default port of `3000` is used unless a port option is additionally specified with `-p`, `--port`, or `PORT`. +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.