feat(api): HOST env for loopback binding (bare-metal deploy) #4074
ccantynzcommented Jun 11, 2026
Originally written by @vercel[bot] on GitHub.
Deployment failed with the following error:
There is no GitHub account connected to this Vercel account.ccantynzcommented Jun 11, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| alec-rae-com-admin | Preview, Comment | Jun 11, 2026 4:09am |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/57
What
Bare-metal deploy (gluecron / Ubuntu + systemd) runs the API behind a reverse proxy that terminates TLS, so the server should bind loopback only.
Adds a
HOSTenv var (default0.0.0.0to preserve current behaviour) and passes it as the Bunservehostname.Verification
bun run typecheck(api) ✅HOST=127.0.0.1 PORT=4100→GET 127.0.0.1:4100/healthreturns HTTP 200 ✅https://claude.ai/code/session_01McgJLnTbZG9mwhfwd5iAX3
Generated by Claude Code