Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Add option to pass through defaultRootObject config
Browse files Browse the repository at this point in the history
  • Loading branch information
John Smith committed Sep 22, 2021
1 parent c4d22e5 commit bbd2871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface StaticHostingProps {
*/
behaviors?: Array<Behavior>;
enableErrorConfig: boolean;
defaultRootObject?: string
}

export class StaticHosting extends Construct {
Expand Down Expand Up @@ -134,6 +135,7 @@ export class StaticHosting extends Construct {
sslMethod: SSLMethod.SNI,
},
originConfigs,
defaultRootObject: props.defaultRootObject,
priceClass: PriceClass.PRICE_CLASS_ALL,
viewerProtocolPolicy: ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
loggingConfig: loggingConfig,
Expand Down

0 comments on commit bbd2871

Please sign in to comment.