Skip to content

Commit

Permalink
update cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
yarbsemaj committed Jun 12, 2024
1 parent 6a5ffb7 commit 5530ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SvelteKitSite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class SvelteKitSite extends Construct {
const distribution = new cdk.aws_cloudfront.Distribution(this, `${id}-svelte-cloudfront`, {
...props?.cloudfrontProps,
defaultBehavior: {
allowedMethods: cdk.aws_cloudfront.AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
allowedMethods: cdk.aws_cloudfront.AllowedMethods.ALLOW_ALL,
origin: new cdk.aws_cloudfront_origins.HttpOrigin(cdk.Fn.select(2, cdk.Fn.split('/', svelteURL.url)), {
customHeaders: {
's3-host': staticAssets.virtualHostedUrlForObject().replace('https://', '')
Expand Down

0 comments on commit 5530ffe

Please sign in to comment.