Skip to content

Commit fab382f

Browse files
committed
chore: wip
1 parent d92e119 commit fab382f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

storage/framework/core/cloud/src/cloud/cdn.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface CdnStackProps extends NestedCloudProps {
2222
certificate: acm.Certificate
2323
logBucket: s3.Bucket
2424
publicBucket: s3.Bucket
25+
docsBucket: s3.Bucket
2526
firewall: wafv2.CfnWebACL
2627
originRequestFunction: lambda.Function
2728
zone: route53.IHostedZone
@@ -271,7 +272,7 @@ export class CdnStack {
271272
docsBehaviorOptions(props: CdnStackProps): Record<string, cloudfront.BehaviorOptions> {
272273
return {
273274
'/docs': {
274-
origin: new origins.S3Origin(props.publicBucket, {
275+
origin: new origins.S3Origin(props.docsBucket, {
275276
originAccessIdentity: this.originAccessIdentity,
276277
originPath: '/docs',
277278
}),

storage/framework/core/cloud/src/cloud/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export class Cloud extends Stack {
113113
this.cdn = new CdnStack(this, {
114114
...props,
115115
publicBucket: this.storage.publicBucket,
116+
docsBucket: this.storage.docsBucket,
116117
logBucket: this.storage.logBucket,
117118
certificate: this.security.certificate,
118119
firewall: this.security.firewall,

0 commit comments

Comments
 (0)