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

next serve --hostname option is broken in 12.4.15 #54345

Closed
1 task done
EmilioAiolfi opened this issue Aug 21, 2023 · 4 comments
Closed
1 task done

next serve --hostname option is broken in 12.4.15 #54345

EmilioAiolfi opened this issue Aug 21, 2023 · 4 comments
Labels
bug Issue was opened via the bug report template. Runtime Related to Node.js or Edge Runtime with Next.js. stale The issue has not seen recent activity.

Comments

@EmilioAiolfi
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.17.1
      npm: 9.6.7
      Yarn: 1.22.19
      pnpm: N/A
    Relevant Packages:
      next: 13.4.15
      eslint-config-next: 13.4.16
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4

Which area(s) of Next.js are affected? (leave empty if unsure)

Middleware / Edge (API routes, runtime)

Link to the code that reproduces this issue or a replay of the bug

https://github.com/EmilioAiolfi/test-hostname

To Reproduce

Add --hostname option to run next serve

Describe the Bug

next dev --port 3001 --hostname local.mydomain.com.br

Dont work and not return

- ready started server on local.mydomain.com:3001, url: http://local.mydomain.com:3001

but return

- ready started server on 127.0.0.1:3001, url: http://127.0.0.1:3001

Expected Behavior

next dev --port 3001 --hostname local.mydomain.com.br

- ready started server on local.mydomain.com:3001 , url: http://local.mydomain.com:3001

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@EmilioAiolfi EmilioAiolfi added the bug Issue was opened via the bug report template. label Aug 21, 2023
@github-actions github-actions bot added the Runtime Related to Node.js or Edge Runtime with Next.js. label Aug 21, 2023
@Rieranthony
Copy link

I've got the same issue, this is preventing me from upgrading to the latest next versions.

This option is super useful for multi tenant apps using wildcard subdomains

@Rieranthony
Copy link

I can confirm this is fixed in v13.4.20-canary.33!

Thanks for pushing that forward

@nextjs-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@nextjs-bot nextjs-bot added the stale The issue has not seen recent activity. label Mar 15, 2025
@nextjs-bot
Copy link
Collaborator

This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!

@nextjs-bot nextjs-bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2025
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. Runtime Related to Node.js or Edge Runtime with Next.js. stale The issue has not seen recent activity.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants