feat: remove config constraint #94
@@ -73,10 +73,6 @@ func NewSettingsFromEnv(env func(string) string) *Settings {
|
||||
log.Fatal("ENVIRONMENT must be set")
|
||||
}
|
||||
|
||||
if settings.Environment == "prod" && (settings.Smtp == nil || !settings.PrometheusEnabled) {
|
||||
log.Fatal("SMTP and Prometheus must be enabled in production")
|
||||
}
|
||||
|
||||
log.Info("BASE_URL is %q", settings.BaseUrl)
|
||||
log.Info("ENVIRONMENT is %q", settings.Environment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user