//go:embed needs internal/webdist/dist to exist at compile time, so a one-line placeholder index.html is committed there and the real build (Docker, or a manual copy of web/dist) overwrites it. One mux serves /, /api, and a /healthz for the compose healthcheck to come.
10 lines
332 B
Text
10 lines
332 B
Text
# binary from `go build ./cmd/spreadlab`
|
|
/spreadlab
|
|
|
|
# prettier cache (npm run format in web/ walks up here)
|
|
/node_modules/
|
|
|
|
# real frontend builds copied over the committed placeholder (index.html
|
|
# stays tracked; `git restore internal/webdist/dist` after local testing)
|
|
/internal/webdist/dist/*
|
|
!/internal/webdist/dist/index.html
|