Skip to content

localghost v4.1.0

Choose a tag to compare

@SmileyChris SmileyChris released this 09 Oct 01:29
· 41 commits to main since this release

Localghost 4.1 gives projects in folders like web or frontend the name of the repository they belong to, and tidies the hub's welcome page.

  • Better names for generic folders. A host project in a folder named web, www, site, app, frontend, client, ui, backend, server, api, apps, packages, src, dist, build, out or public is named after the folder above it, so cineshelf/web serves at cineshelf.localhost. This only happens inside a git repository, and never above its root or a folder holding .localghost.toml. --name and [run].name still win, and Compose projects keep Compose's own naming.
  • Existing projects keep their names. A project localghost already remembers under its folder name keeps it. To move one over, run localghost sessions forget web and then run it again.
  • A clearer welcome page. http://localhost lists running projects first, then the rest by when they last started.
uvx --refresh localghost --version