make sure the AL2023 stuff comes first!

This commit is contained in:
Kyle McNally 2023-12-18 14:19:25 -05:00
parent 62b5d05260
commit 80cf8e79ce
1 changed files with 3 additions and 2 deletions

View File

@ -57,12 +57,13 @@ if (isRunningInAwsLambda()) {
if (process.env["LD_LIBRARY_PATH"] === undefined) {
process.env["LD_LIBRARY_PATH"] = "/tmp/aws/lib";
} else if (
process.env["LD_LIBRARY_PATH"].startsWith("/tmp/aws/lib") !== true
process.env["LD_LIBRARY_PATH"].startsWith("/tmp/aws/lib") !== true ||
process.env["LD_LIBRARY_PATH"].startsWith("/tmp/al2023/lib") !== true
) {
process.env["LD_LIBRARY_PATH"] = [
...new Set([
"/tmp/aws/lib",
isRunningInAwsLambdaNode20() ? "/tmp/al2023/lib" : undefined,
"/tmp/aws/lib",
...process.env["LD_LIBRARY_PATH"].split(":"),
]),
].join(":");