Documentation
¶
Overview ¶
Package webdist serves the React SPA. In production it is compiled with the `embed_spa` build tag and serves the SPA embedded into the binary; without the tag (local `go run`) it serves a placeholder pointing at the Vite dev server. The static/ directory is gitignored and populated at image-build time.
Index ¶
Constants ¶
View Source
const Embedded = false
Embedded reports whether the SPA is compiled into the binary.
Variables ¶
View Source
var FS fs.FS
FS is nil in dev builds; Handler serves a placeholder instead.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.