From 7e9401d8bb12589de6ce1517e4502d784788ab0f Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sun, 20 Jul 2025 08:57:31 -0500 Subject: [PATCH] test(app): added production into the build so we dont fill logs up --- backend/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/main.go b/backend/main.go index 01aa0f3..de5b980 100644 --- a/backend/main.go +++ b/backend/main.go @@ -21,6 +21,7 @@ func main() { // Set basePath dynamically basePath := "/" + if os.Getenv("APP_ENV") != "production" { basePath = "/lst" // Dev only } @@ -29,6 +30,10 @@ func main() { fmt.Println("Welcome to lst backend where all the fun happens.") r := gin.Default() + if os.Getenv("APP_ENV") == "production" { + gin.SetMode(gin.ReleaseMode) + } + // // --- Add Redirects Here --- // // Redirect root ("/") to "/app" or "/lst/app" // r.GET("/", func(c *gin.Context) {