From c22a17cb8baac96a82b8aab4c45a6cd336169fc1 Mon Sep 17 00:00:00 2001 From: Khue Nguyen Date: Fri, 9 Dec 2022 15:34:05 -0800 Subject: [PATCH] chore: update comments --- src/NextjsDistribution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NextjsDistribution.ts b/src/NextjsDistribution.ts index 8afde135..465a1578 100644 --- a/src/NextjsDistribution.ts +++ b/src/NextjsDistribution.ts @@ -334,8 +334,8 @@ export class NextjsDistribution extends Construct { ]; // default handler for requests that don't match any other path: - // - try S3 first - // - if 403, fall back to lambda handler (mostly for /) + // - try lambda handler first (/some-page, etc...) + // - if 403, fall back to S3 // - if 404, fall back to lambda handler const fallbackOriginGroup = new origins.OriginGroup({ primaryOrigin: serverFunctionOrigin,