fix: correct path for serving static html files

next
Antonio De Lucreziis 2 years ago
parent 5094127c3d
commit cacf58bc1d

@ -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))
}
}

Loading…
Cancel
Save