fix: correct path for serving static html files

This commit is contained in:
2023-01-31 02:52:39 +01:00
parent 5094127c3d
commit cacf58bc1d
+2 -4
View File
@@ -37,11 +37,9 @@ func UseVitePage[T any](l *sl.ServiceLocator, mountPoint, frontendHtml string) f
log.Fatal(err)
}
frontendPath := path.Join("./frontend/", frontendHtml)
dev.HtmlRouteBindings[mountPoint] = frontendPath
dev.HtmlRouteBindings[mountPoint] = path.Join("./frontend/", frontendHtml)
return func(c *fiber.Ctx) error {
return c.SendFile(frontendPath)
return c.SendFile(path.Join("./out/frontend/", frontendHtml))
}
}