Fix static style serving in prod

This commit is contained in:
Daniel Pupius
2025-05-02 15:31:14 -07:00
parent ba9c8d9221
commit c53486414f
2 changed files with 5 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ func (s *Server) Start() error {
prefab.WithPort(port),
prefab.WithHTTPHandlerFunc("/api/status", s.handleStatus),
prefab.WithHTTPHandlerFunc("/api/stream", s.handleStream),
prefab.WithStaticFiles("/assets", s.config.StaticDir+"/assets"),
prefab.WithStaticFiles("/assets/", s.config.StaticDir),
prefab.WithHTTPHandlerFunc("/", s.fallbackHandler),
)

View File

@@ -0,0 +1,4 @@
/* This is a test CSS file for checking prod-like static file servinng in dev. */
.test-css-file {
color: red;
}