orchard
mirrorEvery site I host, in one repo, along with the Cloudflare Tunnel and Caddy that front them. It's all Go, Vite, and SQLite, and it runs on a desktop at home with nothing listening on an inbound port.
blogbuncaddycloudflare-tunneldockergogolanghomelabhtml-templatemonorepoself-hostedseosqlitestatic-sitetypstuptime-monitoringviteweb-analytics
1//go:build !embed
2
3package main
4
5import (
6 "io/fs"
7 "os"
8)
9
10// distFS reads the Vite bundle off disk so `bun run dev` can rewrite it under a
11// running server. A release build embeds it instead; see assets_embed.go.
12func distFS() fs.FS { return os.DirFS(dir("SITE_DIST", "build/dist")) }