fix: correct path for serving static html files
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user