Skip to content

Commit

Permalink
Reintroduce error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehnix committed Nov 2, 2023
1 parent 42281fe commit 512d01e
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions deployment/lib/services/s3-website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,18 @@ export class Stack extends cdk.Stack {
},
additionalBehaviors,
// Set up redirects when a user hits a 404 or 403.
// TODO: Are these causing the other pages to be inaccessible?
// errorResponses: [
// {
// httpStatus: 403,
// responsePagePath: `/${props.error}`,
// responseHttpStatus: 200,
// },
// {
// httpStatus: 404,
// responsePagePath: `/${props.error}`,
// responseHttpStatus: 200,
// },
// ],
errorResponses: [
{
httpStatus: 403,
responsePagePath: `/${props.error}`,
responseHttpStatus: 200,
},
{
httpStatus: 404,
responsePagePath: `/${props.error}`,
responseHttpStatus: 200,
},
],
});
cdk.Tags.of(distribution).add('billing', `${props.billingGroup}-cloudfront`);
cdk.Tags.of(distribution).add('billing-group', `${props.billingGroup}`);
Expand Down

0 comments on commit 512d01e

Please sign in to comment.