Skip to content

Commit

Permalink
DO-1531: update comments and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gowrizrh committed Sep 26, 2023
1 parent 567a58f commit b455ae6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface StaticHostingProps {
defaultBehaviorEdgeLambdas: EdgeLambda[];

/**
* After switching constructs, if you need to maintain the same logical ID
* After switching constructs, you need to maintain the same logical ID
* for the underlying CfnDistribution if you wish to avoid the deletion
* and recreation of your distribution.
*
Expand Down Expand Up @@ -144,6 +144,7 @@ export class StaticHosting extends Construct {
const siteNameArray: Array<string> = [siteName];
const enforceSSL = props.enforceSSL !== false;
const enableStaticFileRemap = props.enableStaticFileRemap !== false;
const errorResponsePagePath = props.errorResponsePagePath ?? "/index.html";
const disableCSP = props.disableCSP === true;

const domainNames: Array<string> = props.extraDistributionCnames
Expand Down Expand Up @@ -255,7 +256,7 @@ export class StaticHosting extends Construct {
{
httpStatus: 404,
responseHttpStatus: 200,
responsePagePath: props.errorResponsePagePath ?? "/index.html",
responsePagePath: errorResponsePagePath,
ttl: Duration.seconds(0),
},
];
Expand Down

0 comments on commit b455ae6

Please sign in to comment.