From dad54957b955a59240520efa463c3c4e2e901ddd Mon Sep 17 00:00:00 2001 From: Daniel Van Der Ploeg Date: Thu, 20 Jun 2024 15:18:05 +0930 Subject: [PATCH] fix: revert error response path --- packages/static-hosting/lib/static-hosting.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/static-hosting/lib/static-hosting.ts b/packages/static-hosting/lib/static-hosting.ts index b18e6454..46786ec4 100644 --- a/packages/static-hosting/lib/static-hosting.ts +++ b/packages/static-hosting/lib/static-hosting.ts @@ -127,7 +127,7 @@ export interface StaticHostingProps { /** * Custom error response page path * - * @default index.html + * @default /index.html */ errorResponsePagePath?: string; @@ -319,7 +319,7 @@ export class StaticHosting extends Construct { const enforceSSL = props.enforceSSL !== false; const enableStaticFileRemap = props.enableStaticFileRemap !== false; const defaultRootObject = props.defaultRootObject ?? "index.html"; - const errorResponsePagePath = props.errorResponsePagePath ?? "index.html"; + const errorResponsePagePath = props.errorResponsePagePath ?? "/index.html"; const defaultBehaviorEdgeLambdas = props.defaultBehaviorEdgeLambdas ?? []; const disableCSP = props.disableCSP === true;