Skip to content

fix(bun): respect HOST and NITRO_HOST - #3547

Merged
pi0 merged 3 commits into
nitrojs:v2from
wling-art:v2
Aug 26, 2025
Merged

pi0 merged 3 commits into
nitrojs:v2from
wling-art:v2

Conversation

@wling-art

Copy link
Copy Markdown
Contributor

🔗 Linked issue

#3546

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Resolves #3546

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Comment thread src/presets/bun/runtime/bun.ts Resolved
@vercel

vercel Bot commented Aug 26, 2025

Copy link
Copy Markdown

@pi0 is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@pi0 pi0 changed the title fix(bun): update server host configuration and log URL fix(bun): support HOST and NITRO_HOST Aug 26, 2025
@pi0 pi0 changed the title fix(bun): support HOST and NITRO_HOST fix(bun): respect HOST and NITRO_HOST Aug 26, 2025
@qgustavor

Copy link
Copy Markdown
Contributor

Shouldn't it be hostname instead of host as per the documentation?

@pi0

pi0 commented Sep 25, 2025 •

Copy link
Copy Markdown
Member

standard env variable is HOST (but config name is hostname)

@qgustavor

Copy link
Copy Markdown
Contributor

Just to be sure, the Bun.serve config is hostname but it was set to host, thus it's not respecting nor HOST nor NITRO_HOST, thus, it is a bug, correct? At the moment I'm patching the server code to workaround that.

@pi0

pi0 commented Sep 25, 2025

Copy link
Copy Markdown
Member

Ah sorry you are right! This is currently wrong. Please feel free to drop a PR to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants