diff --git a/src/use-lambda-env.ts b/src/use-lambda-env.ts index 0d3acef..8c3f57d 100644 --- a/src/use-lambda-env.ts +++ b/src/use-lambda-env.ts @@ -28,7 +28,10 @@ async function getLambdaEnv(functionName: string, region?: string): Promise { const result = cp.spawnSync(command[0], command.slice(1), { stdio: 'inherit', - env: await getLambdaEnv(functionName, region), + env: { + ...process.env, + ...(await getLambdaEnv(functionName, region)), + }, }); process.exit(result.status ?? 1); }