mirror of
https://github.com/dpup/meshstream.git
synced 2026-03-28 17:42:37 +01:00
Fix static style serving in prod
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
4
server/static/assets/test.css
Normal file
4
server/static/assets/test.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user