From 00567a52577dce643495b87c3dc35763258cc782 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 30 May 2026 14:42:51 +0000 Subject: [PATCH] Treat empty `PAGES_*` environment variables as nonexistent. The behavior for lists is confusing otherwise: it results in `[""]`. V12-Ref: F-77212 --- src/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.go b/src/config.go index e443e97..4227cb1 100644 --- a/src/config.go +++ b/src/config.go @@ -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