Skip to content

Commit

Permalink
fix: pass through env vars in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Sep 7, 2024
1 parent df7aea2 commit cedc5a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/deploy-script/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import {
} from "@aws-sdk/client-apigatewayv2";

const exec = (command, options = {}) => {
const child = child_process.exec(command, options);
const child = child_process.exec(command, {
...options,
env: { ...process.env, ...(options.env || {}) },
});

child.stdout.on("data", function (data) {
console.log(data?.trim());
});
Expand Down

0 comments on commit cedc5a9

Please sign in to comment.