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
return Object.entries(template.config.env).map(
([key, value]: [string, string]) => {
return Object.entries(template.config.env).map(([key, value]) => {
if (typeof value === "string") {
const processedValue = processValue(value, variables, schema);
return `${key}=${processedValue}`;
},
);
}
return `${key}=${value}`;
});
}
/**