feat: embed the built web app in sondad behind the webui build tag

internal/webui carries web/'s build (written to internal/webui/dist by Vite, git-ignored) when sondad is built with -tags webui. Without the tag the app is absent and a plain go build and go test still work with no Node. main wires it into the router.
This commit is contained in:
tgiachi 2026-11-12 15:56:34 +01:00
commit 249b2cb7bc

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
/bin/
# The built web app, embedded in the binary by a build with -tags webui: an artifact, never committed.
/internal/webui/dist/
*.test
*.out
sonda.toml