mirror of
https://github.com/dpup/meshstream.git
synced 2026-06-11 09:44:46 +02:00
Fix static style serving in prod
This commit is contained in:
+1
-1
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
/* This is a test CSS file for checking prod-like static file servinng in dev. */
|
||||
.test-css-file {
|
||||
color: red;
|
||||
}
|
||||
Reference in New Issue
Block a user