Skip to content

Commit

Permalink
fix(static-site): Converted 'getContext' to 'tryGetContext' (aws-samp…
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Litov committed Jun 12, 2019
1 parent 2e40fe8 commit 78f572a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typescript/static-site/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class MyStaticSiteStack extends cdk.Stack {
super(parent, name, props);

new StaticSite(this, 'StaticSite', {
domainName: this.node.getContext('domain'),
siteSubDomain: this.node.getContext('subdomain'),
domainName: this.node.tryGetContext('domain'),
siteSubDomain: this.node.tryGetContext('subdomain'),
});
}
}
Expand Down

0 comments on commit 78f572a

Please sign in to comment.