feat: CI + Nix deploy + prod sectors-hackaton.asepharyana.my.id
CI / go test + web typecheck (push) Canceled after 0s
CI / build + deploy (Nix) — flowsight (push) Canceled after 0s

- Backend serve web dist (WEB_DIST_DIR + SPA fallback, /api 404 JSON)
- flake.nix: single flowsight derivation (go 1.25 + pnpm build)
- deploy/flowsight.service: systemd on :4022 via bws-exec
- .github/workflows/ci.yml: go test + tsc gate, nix build, attic, SSH deploy
This commit is contained in:
asepharyana
2026-09-15 14:45:23 +07:00
parent 8c184ccae1
commit 21e8568108
8 changed files with 378 additions and 0 deletions
+3
View File
@@ -90,6 +90,9 @@ func (s *Server) Router() http.Handler {
r.Get("/accuracy", s.Accuracy)
r.Post("/chat", s.Chat)
})
if s.Cfg.StaticDir != "" {
r.NotFound(s.spaHandler())
}
return r
}