Treat empty PAGES_* environment variables as nonexistent.

The behavior for lists is confusing otherwise: it results in `[""]`.

V12-Ref: F-77212
This commit is contained in:
Catherine
2026-05-30 14:42:51 +00:00
parent 16505f6054
commit 00567a5257
+1 -1
View File
@@ -357,7 +357,7 @@ func Configure(tomlPaths ...string) (config *Config, err error) {
// inject values from the environment, overriding everything else
err = walkConfig(config, func(envName string, reflValue reflect.Value) error {
if envValue, found := os.LookupEnv(envName); found {
if envValue, found := os.LookupEnv(envName); found && envValue != "" {
return setConfigValue(reflValue, envValue)
}
return nil