File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
.stacks/core/cloud/src/cloud Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -194,14 +194,14 @@ export class CdnStack {
194
194
}
195
195
196
196
apiBehaviorOptions ( scope : Construct , props : CdnStackProps ) : Record < string , cloudfront . BehaviorOptions > {
197
- // const origin = (path: '/api' | '/api/*' = '/api') => new origins.HttpOrigin(props.lb.loadBalancerDnsName, {
198
- // originPath: path,
199
- // protocolPolicy: cloudfront.OriginProtocolPolicy.HTTPS_ONLY,
200
- // })
201
- const origin = ( path : '/api' | '/api/*' = '/api' ) => new origins . LoadBalancerV2Origin ( props . lb , {
197
+ const origin = ( path : '/api' | '/api/*' = '/api' ) => new origins . HttpOrigin ( props . lb . loadBalancerDnsName , {
202
198
originPath : path ,
203
199
protocolPolicy : cloudfront . OriginProtocolPolicy . HTTPS_ONLY ,
204
200
} )
201
+ // const origin = (path: '/api' | '/api/*' = '/api') => new origins.LoadBalancerV2Origin(props.lb, {
202
+ // originPath: path,
203
+ // protocolPolicy: cloudfront.OriginProtocolPolicy.HTTPS_ONLY,
204
+ // })
205
205
206
206
return {
207
207
'/api' : {
You can’t perform that action at this time.
0 commit comments