Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicFS = findPublicFS()
PublicFS serves frontend assets in development and tests when the binary was not built with -tags embed. It prefers generated files on disk and falls back to a tiny placeholder SPA so ordinary `go test`/`go build` do not require Node, Dagger, or committed generated assets.
Functions ¶
func NewSPAHandler ¶
NewSPAHandler returns a handler that serves the frontend assets with SPA fallback to index.html for unknown paths. Production builds set PublicFS from embedded assets generated by `go generate ./pkg/web`; development/test builds use a disk or in-memory fallback from embed_none.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.