package service

import (
	"baron-sso-backend/internal/logger"
	"os"
	"strings"
)

func IsProductionEnv() bool {
	env := strings.ToLower(os.Getenv("APP_ENV"))
	if env == "" {
		env = strings.ToLower(os.Getenv("GO_ENV"))
	}
	return logger.IsProductionLikeEnv(env)
}

func IsDryRunAllowed() bool {
	return !IsProductionEnv()
}
