From a3b066859b65e9252f9986efab08a35d61cc7202 Mon Sep 17 00:00:00 2001 From: kalipso Date: Fri, 11 Apr 2025 18:10:37 +0200 Subject: [PATCH] set static file by env --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f69582d..7c75f77 100644 --- a/main.go +++ b/main.go @@ -52,7 +52,7 @@ func main() { server.Use(gin.Recovery()) server.Use(gin.Logger()) - server.Static("/static", "./static") + server.Static("/static", os.Getenv("STATIC")) server.LoadHTMLGlob("views/*.html") apiRoutes := server.Group("/api")