From f53b1e98f3b3dafddac97ad22d01ca4ed6bd6959 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Thu, 15 Jul 2021 16:56:10 +0530 Subject: fixed 404 error because of build being in different directory --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index c9d0e56..965f426 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ func main() { r.Use(gin.Logger()) r.Use(static.Serve("/", - static.LocalFile("./build", true))) + static.LocalFile("./../build", true))) r.Run(":" + os.Getenv("PORT")) } -- cgit v1.2.3