1
0
forked from baron/baron-sso
Files
baron-sso/backend/internal/service/dry_run_service.go
2026-01-30 11:16:09 +09:00

19 lines
293 B
Go

package service
import (
"os"
"strings"
)
func IsProductionEnv() bool {
env := strings.ToLower(os.Getenv("APP_ENV"))
if env == "" {
env = strings.ToLower(os.Getenv("GO_ENV"))
}
return env == "prod" || env == "production"
}
func IsDryRunAllowed() bool {
return !IsProductionEnv()
}