File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
storage/framework/core/cloud/src/cloud Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export interface CdnStackProps extends NestedCloudProps {
22
22
certificate : acm . Certificate
23
23
logBucket : s3 . Bucket
24
24
publicBucket : s3 . Bucket
25
+ docsBucket : s3 . Bucket
25
26
firewall : wafv2 . CfnWebACL
26
27
originRequestFunction : lambda . Function
27
28
zone : route53 . IHostedZone
@@ -271,7 +272,7 @@ export class CdnStack {
271
272
docsBehaviorOptions ( props : CdnStackProps ) : Record < string , cloudfront . BehaviorOptions > {
272
273
return {
273
274
'/docs' : {
274
- origin : new origins . S3Origin ( props . publicBucket , {
275
+ origin : new origins . S3Origin ( props . docsBucket , {
275
276
originAccessIdentity : this . originAccessIdentity ,
276
277
originPath : '/docs' ,
277
278
} ) ,
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ export class Cloud extends Stack {
113
113
this . cdn = new CdnStack ( this , {
114
114
...props ,
115
115
publicBucket : this . storage . publicBucket ,
116
+ docsBucket : this . storage . docsBucket ,
116
117
logBucket : this . storage . logBucket ,
117
118
certificate : this . security . certificate ,
118
119
firewall : this . security . firewall ,
You can’t perform that action at this time.
0 commit comments