From faa1ca2fde671e9684fb252bde7f732d46ec2020 Mon Sep 17 00:00:00 2001
From: jano3 <jano@bob.co.za>
Date: Wed, 13 Dec 2023 13:11:58 +0200
Subject: [PATCH] Use bootstrap as executable name for playground environment:
 update function to get environment

---
 mage_helpers/build.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mage_helpers/build.go b/mage_helpers/build.go
index c85654f..eb26eef 100644
--- a/mage_helpers/build.go
+++ b/mage_helpers/build.go
@@ -45,7 +45,7 @@ func Build(dir string, module string, isDebug bool) error {
 	fmt.Println(fmt.Sprintf("Building %v", handler))
 
 	outputFileName := handler
-	env := os.Getenv("ENVIRONMENT")
+	env := CurrentEnv()
 	fmt.Println("ENV:", env)
 	if env == "playground" {
 		fmt.Println("Using 'bootstrap' for output file name")
-- 
GitLab