mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(processors): ensure environment variable processing handles non-string values correctly
This commit is contained in:
@@ -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}`;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user