Skip to content

Commit

Permalink
docs(cli): add mention of default port with experimental-https (#70497)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
samcx and wbinnssmith authored Sep 26, 2024
1 parent bb1617b commit c38bcb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/02-app/02-api-reference/06-cli/next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c38bcb7

Please sign in to comment.