Zod schema for optional comma-separated string list env vars.
Like commaSeparatedList, but returns undefined when the
input is empty or produces no items after trimming. The resulting
field type is string[] | undefined.
Use for optional list fields where absence has semantic meaning
(e.g., "use defaults" for allowed origins/hosts).
Zod schema for optional comma-separated string list env vars.
Like commaSeparatedList, but returns
undefinedwhen the input is empty or produces no items after trimming. The resulting field type isstring[] | undefined.Use for optional list fields where absence has semantic meaning (e.g., "use defaults" for allowed origins/hosts).