Skip to content

Commit

Permalink
Merge pull request #399 from aheissenberger/fix/aws-cdk
Browse files Browse the repository at this point in the history
fix: boilerplate/ aws / replace deprecated function
  • Loading branch information
magne4000 authored Sep 26, 2024
2 parents e68f08a + 1f95f4d commit 4996542
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boilerplates/aws/files/cdk/lib/vike-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class VikeStack extends cdk.Stack {
compress: true,
};

const assetOrigin = new origin.S3Origin(bucket);
const assetOrigin = origin.S3BucketOrigin.withOriginAccessControl(bucket);
const assetBehaviorOptions = {
viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
compress: true,
Expand Down
4 changes: 4 additions & 0 deletions boilerplates/shared/files/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,7 @@ dist

# Sentry Vite Plugin
.env.sentry-build-plugin

# aws-cdk
.cdk.staging
cdk.out

0 comments on commit 4996542

Please sign in to comment.