fix: update default environment mode to staging and add local configuration file

This commit is contained in:
Ardeman 2025-04-23 18:18:44 +08:00
parent 4bf318a9c2
commit e29bd7986f
2 changed files with 5 additions and 4 deletions

View File

@ -12,14 +12,15 @@ import (
const ( const (
YAML_PATH = "env/%s" YAML_PATH = "env/%s"
ENV_MODE = "ENV_MODE" ENV_MODE = "ENV_MODE"
DEFAULT_ENV_MODE = "development" DEFAULT_ENV_MODE = "staging"
) )
var ( var (
validEnvMode = map[string]struct{}{ validEnvMode = map[string]struct{}{
"local": {}, "local": {},
"development": {}, "staging": {},
"production": {}, "production": {},
"debug": {},
} }
) )