diff --git a/cmd/start.go b/cmd/start.go index f6a5d67..23f3433 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -102,8 +102,11 @@ var startCmd = &cobra.Command{ BaseContext: func(_ net.Listener) context.Context { return ctx }, // Pass base context to all requests } - // Serve the components directory - httpRequestRouter.Handle("/", http.FileServer(http.Dir("./components"))) + // Serve the templates and static files + // Serve templates from the "templates" directory + httpRequestRouter.Handle("/", http.FileServer(http.Dir("./templates"))) + // Serve static files from the "static" directory + httpRequestRouter.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static")))) // Log server startup with structured logging logger.Info("starting server",