feat(server): embed SPA dist with fallback handler; single-binary deploy

This commit is contained in:
2026-04-29 10:43:42 +08:00
parent 04a19dbcef
commit 78989a42ac
8 changed files with 70 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func main() {
rootCtx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
a, err := app.New(rootCtx, cfg)
a, err := app.New(rootCtx, cfg, distFS)
if err != nil {
_, _ = fmt.Fprintln(os.Stderr, "app new:", err)
os.Exit(1)