Skip to content

Commit

Permalink
Handle the case when the test env var is missing
Browse files Browse the repository at this point in the history
gh-281

I'm also curious to see what happens on deploy now that there are two
stacks in the app.
  • Loading branch information
douglasnaphas committed Feb 23, 2021
1 parent b02942f commit 46f276f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/madliberation-ue1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export class MadliberationUe1 extends cdk.Stack {
new cdk.CfnOutput(this, "ue1StackStatus", {
value: "created",
});
const someEnvVarOutput = process.env.someV1 || "default val";
new cdk.CfnOutput(this, "someEnvVar", {
value: process.env.someV1 as string,
value: someEnvVarOutput,
});
}
}

0 comments on commit 46f276f

Please sign in to comment.