ARTEX-English/server/webui_stub.go
Sean Kilfoy edaf7e323a Package BaaRai v0.7.0 as the operator distribution.
The application tree is BaaRai/ARTEX v0.7.0 (22ae88af), imported as one commit because that history is not in this repository. This commit adds the cloud installer, a defender pack for the console and the known-bad image names, and a supply-chain check. The opt-in update banner points at this fork and stays off in the cloud compose file.
2026-11-26 07:33:09 +00:00

18 lines
708 B
Go

//go:build !embedui
package server
import "net/http"
// webuiHandler is the no-embed stub (default build). The frontend is NOT bundled
// into this binary — run it separately with `cd web && npm run dev` during
// development. Build the bundled single-binary with:
//
// cd web && npm run build:static # produces web/out
// cp -r web/out server/webui/dist # (or use the build script)
// go build -tags embedui ./cmd/artex
func (s *Server) webuiHandler() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
http.Error(w, "Frontend is not embedded in this binary (use next dev for development; build with -tags embedui for release)", http.StatusNotFound)
})
}