updates to match sam's output HTML

This commit is contained in:
bryan newbold
2024-04-12 14:47:47 -07:00
committed by Dan Abramov
parent 769e0774f8
commit 0c309d6dd8
2 changed files with 11 additions and 8 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ func serve(cctx *cli.Context) error {
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
// Don't log requests for static content.
Skipper: func(c echo.Context) bool {
return strings.HasPrefix(c.Request().URL.Path, "/embedr-static")
return strings.HasPrefix(c.Request().URL.Path, "/static")
},
}))
e.Use(middleware.RateLimiterWithConfig(middleware.RateLimiterConfig{
@@ -139,9 +139,9 @@ func serve(cctx *cli.Context) error {
staticHandler := http.FileServer(func() http.FileSystem {
if debug {
log.Debugf("serving static file from the local file system")
return http.FS(os.DirFS("static"))
return http.FS(os.DirFS("embedr-static"))
}
fsys, err := fs.Sub(bskyweb.EmbedrStaticFS, "static")
fsys, err := fs.Sub(bskyweb.EmbedrStaticFS, "embedr-static")
if err != nil {
log.Fatal(err)
}