//go:build dev package main import "net/http" func spaHandler() http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/" { w.Write([]byte("Dev mode — frontend served by Vite at http://localhost:5173\n")) return } http.NotFound(w, r) }) }