fix: serve datastar locally and clean up session/route config

Replace CDN-hosted datastar beta.11 with local v1.0.0-RC.7 to fix
client-side expression incompatibilities with the Go SDK. Also fix
quoted CSS class keys in data-class expressions, harden session cookie
settings (named cookie, Secure flag), simplify SetupRoutes to not
return an error, and regenerate templ output.
This commit is contained in:
Ryan Hamamura
2026-03-02 14:34:39 -10:00
parent 5120eef776
commit 587f392b8b
12 changed files with 36 additions and 46 deletions

View File

@@ -90,9 +90,7 @@ func run(ctx context.Context) error {
sessionManager.LoadAndSave,
)
if err := router.SetupRoutes(r, queries, sessionManager, nc, store, snakeStore, assets); err != nil {
return fmt.Errorf("setting up routes: %w", err)
}
router.SetupRoutes(r, queries, sessionManager, nc, store, snakeStore, assets)
// HTTP server
srv := &http.Server{