Skip to content

Commit

Permalink
docs(readme): add proper sample config for cloudfront
Browse files Browse the repository at this point in the history
  • Loading branch information
NimmLor committed Sep 16, 2023
1 parent 4a5e490 commit ad6ce8a
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 2,514 deletions.
3 changes: 3 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ const functionUrlfqdn = Fn.select(2, Fn.split('/', functionUrl.url))
const distribution = new aws_cloudfront.Distribution(stack, 'Cache', {
certificate,
defaultBehavior: {
allowedMethods: aws_cloudfront.AllowedMethods.ALLOW_ALL,
origin: new aws_cloudfront_origins.HttpOrigin(functionUrlfqdn),
originRequestPolicy: aws_cloudfront.OriginRequestPolicy.ALL_VIEWER,
viewerProtocolPolicy: aws_cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
},
domainNames: [domainName],
})
Expand Down

This file was deleted.

48 changes: 0 additions & 48 deletions cdk.out/cdk-turborepo-remote-cache.assets.json

This file was deleted.

Loading

0 comments on commit ad6ce8a

Please sign in to comment.