From 145579d8d986ca73bccd60c319a50999a7e85437 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 15 Nov 2024 18:58:52 -0600 Subject: [PATCH] fix(config): Fix `WATCH_DOMAINS` env not being split on space --- internal/config/load.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/config/load.go b/internal/config/load.go index bb11d8b..465abc0 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -26,6 +26,9 @@ func (c *Config) Load(cmd *cobra.Command, args []string) error { cmd.Flags().VisitAll(func(f *pflag.Flag) { if !f.Changed { if val, ok := os.LookupEnv(EnvName(f.Name)); ok { + if f.Name == FlagDomains { + val = strings.ReplaceAll(val, " ", ",") + } if err := f.Value.Set(val); err != nil { errs = append(errs, err) }