Skip to content

Commit 41d4bda

Browse files
committed
docs(cli): add mention of default port with experimental-https
1 parent c13f502 commit 41d4bda

File tree

1 file changed

+2
-0
lines changed
  • docs/02-app/02-api-reference/06-cli

1 file changed

+2
-0
lines changed

docs/02-app/02-api-reference/06-cli/next.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ For certain use cases like webhooks or authentication, you can use [HTTPS](https
207207
next dev --experimental-https
208208
```
209209

210+
With the generated certificate, the default Next.js development server will exist on `https://localhost:3000` unless a port option is specified with `-p`, `--port`, or `PORT`.
211+
210212
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.
211213

212214
```bash filename="Terminal"

0 commit comments

Comments
 (0)