forked from baron/baron-sso
userfront 이력 session ID기반 작업 완료.
This commit is contained in:
18
backend/internal/service/dry_run_service.go
Normal file
18
backend/internal/service/dry_run_service.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user