Skip to content

Commit db0add7

Browse files
authored
Fixed envsubst issue (louislam#301)
1 parent 0f52bb7 commit db0add7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/util-common.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,11 @@ function traverseYAML(pair : Pair, env : DotenvParseOutput) : void {
385385
if (item instanceof Pair) {
386386
traverseYAML(item, env);
387387
} else if (item instanceof Scalar) {
388-
item.value = envsubst(item.value, env);
388+
let value = item.value as unknown;
389+
390+
if (typeof(value) === "string") {
391+
item.value = envsubst(value, env);
392+
}
389393
}
390394
}
391395
// @ts-ignore

0 commit comments

Comments
 (0)