From 4db5f4ae91cc5b9139e3f2e1208e2ec032a89ebf Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 23 May 2026 23:48:15 +0200 Subject: Add global Meson build system This commit fully introduces Meson as a build system for this repository. It makes sure the frontend page is built with Hugo before the Go executable is built and embeds the frontend. --- handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handlers.go') diff --git a/handlers.go b/handlers.go index 1ca96d8..4e7bfe6 100644 --- a/handlers.go +++ b/handlers.go @@ -8,14 +8,14 @@ import ( "net/http" ) -//go:embed frontend/public +//go:embed build/frontend/public var frontendEmbed embed.FS func init() { router.HandleFunc("/api/version", version) // frontend must come last to make sure /api takes precedence - frontend, err := fs.Sub(frontendEmbed, "frontend/public") + frontend, err := fs.Sub(frontendEmbed, "build/frontend/public") if err != nil { log.Fatalf("No embedded frontend: %v", err) } -- cgit v1.3