fix(processors): ensure environment variable processing handles non-string values correctly

This commit is contained in:
Mauricio Siu
2025-03-26 01:48:50 -06:00
parent e0433e9f7b
commit e3527f7d69

View File

@@ -205,12 +205,13 @@ export function processEnvVars(
} }
// Handle object of env vars // Handle object of env vars
return Object.entries(template.config.env).map( return Object.entries(template.config.env).map(([key, value]) => {
([key, value]: [string, string]) => { if (typeof value === "string") {
const processedValue = processValue(value, variables, schema); const processedValue = processValue(value, variables, schema);
return `${key}=${processedValue}`; return `${key}=${processedValue}`;
}, }
); return `${key}=${value}`;
});
} }
/** /**