From cacf58bc1d6e8c9637b7b4305602c4770e476cea Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Tue, 31 Jan 2023 02:52:39 +0100 Subject: [PATCH] fix: correct path for serving static html files --- services/server/dev/dev.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/server/dev/dev.go b/services/server/dev/dev.go index 7b08e18..e387b46 100644 --- a/services/server/dev/dev.go +++ b/services/server/dev/dev.go @@ -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)) } }