Skip to content

feat: simplify local hostname to <slug>.lvh.me#27

Merged
kjellberg merged 1 commit into
kiqr:mainfrom
kjellbergzoey:feat/simpler-hostname
Jun 7, 2026
Merged

feat: simplify local hostname to <slug>.lvh.me#27
kjellberg merged 1 commit into
kiqr:mainfrom
kjellbergzoey:feat/simpler-hostname

Conversation

@kjellbergzoey

Copy link
Copy Markdown
Contributor

Why

lvh.me always resolves to 127.0.0.1, so the per-machine segment in project hostnames added no value — it just made local URLs noisy and annoying to type or copy/paste-rewrite.

before:  http://my-theme.rasmus-macbook.lvh.me:5477
after:   http://my-theme.lvh.me:5477

Change

  • buildProjectHostname now returns <slug>.lvh.me (and <subdomain>.<slug>.lvh.me for phpMyAdmin).
  • getMachineHostname is kept — it's still used to record the originating host on database backups, which is legitimately useful provenance.
  • Updated hostname and status tests; dropped the now-unnecessary os.hostname mocking.

All four gates green: lint, typecheck, 194 tests, build.

Note: the README still shows the old format — I'll update that in the pending README PR (#26) so the two stay consistent.

🤖 Generated with Claude Code

Drop the machine-name segment from project hostnames. Since lvh.me always
resolves to 127.0.0.1, the per-machine segment added nothing but noise and
made URLs ugly and hard to type/rewrite.

  before: http://my-theme.rasmus-macbook.lvh.me:5477
  after:  http://my-theme.lvh.me:5477

buildProjectHostname now returns <slug>.lvh.me (and <subdomain>.<slug>.lvh.me).
getMachineHostname is kept — it's still used to stamp the host on db backups.
Updated hostname and status tests accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kjellberg
kjellberg merged commit 246a221 into kiqr:main Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants