disable fiber startup message in production
1 file changed, 3 insertions(+), 1 deletion(-)
changed files
M internal/config/config.go → internal/config/config.go
@@ -36,6 +36,7 @@ DefaultLanguage string `toml:"default_language"` BaseURL URL `toml:"base_url"` RedirectOtherHostnames bool `toml:"redirect_other_hostnames"` Port uint64 + Production bool Title string Email string Description string@@ -85,7 +86,8 @@ if err != nil { return nil, err } config.Port = port - if os.Getenv("ENV") != "production" { + config.Production = os.Getenv("ENV") == "production" + if !config.Production { err = setDevelopmentOverrides(&config) if err != nil { return nil, errors.WithMessage(err, "could not override configuration")