Documentation
¶
Overview ¶
Package frontend embeds the Vue SPA dist directory for serving from the Go binary. The dist/ directory is populated by the build process (scripts/build-all.sh copies web/dist/ here). A placeholder index.html is committed for development builds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Assets embed.FS
Assets contains the embedded Vue SPA build output. The build process copies web/dist/* into internal/frontend/dist/ before compilation.
Functions ¶
func Handler ¶
Handler returns an http.Handler that serves the embedded Vue SPA. API routes (/auth/*, /user/*, /client/*, /.well-known/*, /healthz, /readyz) take priority via ServeMux specificity — this handler only serves the catch-all "/". Any path that doesn't match a static file returns index.html for client-side routing.
Types ¶
This section is empty.