Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With the experimental-https and -H options, the next dev will show a different URL #69820

Closed
txxxxc opened this issue Sep 7, 2024 · 0 comments · Fixed by #69822
Closed

With the experimental-https and -H options, the next dev will show a different URL #69820

txxxxc opened this issue Sep 7, 2024 · 0 comments · Fixed by #69822
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc.

Comments

@txxxxc
Copy link
Contributor

txxxxc commented Sep 7, 2024

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/summer-dawn-zglnpx

To Reproduce

$ npx create-next-app@latest
$ corepack npx next dev -H 0.0.0.0 --experimental-https

Current vs. Expected behavior

Current

$ corepack npx next dev -H 0.0.0.0 --experimental-https
...
  ▲ Next.js 14.2.8
  - Local:        https://localhost:3000
  - Network:      http://0.0.0.0:3000 # scheme is http but actually https.

Expected

$ corepack npx next dev -H 0.0.0.0 --experimental-https
...
  - Local:        https://localhost:3000
  - Network:      https://0.0.0.0:3000 # scheme should be https.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.19
  pnpm: 9.9.0
Relevant Packages:
  next: 14.2.8 // Latest available version is detected (14.2.8).
  eslint-config-next: 14.2.8
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Developer Experience

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

@txxxxc txxxxc added the bug Issue was opened via the bug report template. label Sep 7, 2024
@github-actions github-actions bot added the Developer Experience Issues related to Next.js logs, Error overlay, etc. label Sep 7, 2024
ijjk added a commit that referenced this issue Sep 9, 2024
#69822)

fixes #69820 

- fixes wrong protocol issue when you run `next dev` with
`--experimental-https` and `-H` option.

To check the PR fixes the issue correctly, run the command below.
```
corepack pnpm next -H 0.0.0.0 --experimental-https YOUR_APP_DIRECTORY
```



<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant