制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A local-first preview-deployment orchestrator: every commit of a registered
git repository becomes a servable preview at its own subdomain
(<sha>-<repo>.preview.localhost:8080), built once, deduplicated by
content, and served from a single binary.
local-preview resolves each commit into a (frontend artifact, backend
artifact) pair by content-addressing the relevant subtrees. Commits that
don't touch the frontend (or backend) reuse the existing artifact — and the
already-running backend process. Backend state follows git lineage: a new
backend version forks its data from the nearest deployed ancestor, so
previews feel continuous on a straight line of commits while divergent
branches can never corrupt each other.
uv tool install local-preview
This installs the binary to ~/.local/bin/preview.
Make sure to have that on your PATH.
preview serve
The server listens on :8080. Open http://localhost:8080/ for the
dashboard.
Or with Docker Compose:
docker compose up -d
Full documentation lives at https://jmelahman.github.io/local-preview/:
serve, repo, deploy, install-hook.