Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
fix(cdk): add fallback version
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Oct 26, 2020
1 parent b2a7cfe commit 9fe7408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdk/cloudformation-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ prepareResources({
new TestApp({
...args,
context: {
version: process.env.VERSION,
version: process.env.VERSION ?? '0.0.0-development',
isTest: true,
},
}).synth(),
Expand Down
2 changes: 1 addition & 1 deletion cdk/cloudformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Promise.all([
...args,
enableUnwiredApi: 'apiKey' in ulApiSettings,
context: {
version: process.env.VERSION,
version: process.env.VERSION ?? '0.0.0-development',
},
}).synth(),
)
Expand Down

0 comments on commit 9fe7408

Please sign in to comment.