From 63d125823b12321675e10353b76f5025a1f29dec Mon Sep 17 00:00:00 2001 From: Krishan Thisera Date: Tue, 15 Aug 2023 11:32:41 +0930 Subject: [PATCH] DO-1495: expose prerender proxy props for individiual construct --- packages/prerender-proxy/index.ts | 18 +++++++++++++++--- .../prerender-proxy/lib/handlers/prerender.ts | 1 - 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/prerender-proxy/index.ts b/packages/prerender-proxy/index.ts index 9181546a..fc41368b 100644 --- a/packages/prerender-proxy/index.ts +++ b/packages/prerender-proxy/index.ts @@ -1,7 +1,16 @@ -import { PrerenderLambda } from "./lib/prerender-lambda-construct"; -import { PrerenderFunction } from "./lib/prerender-construct"; +import { + PrerenderLambda, + PrerenderLambdaProps, +} from "./lib/prerender-lambda-construct"; +import { + PrerenderFunction, + PrerenderFunctionOptions, +} from "./lib/prerender-construct"; import { PrerenderCheckFunction } from "./lib/prerender-check-construct"; -import { ErrorResponseFunction } from "./lib/error-response-construct"; +import { + ErrorResponseFunction, + ErrorResponseFunctionOptions, +} from "./lib/error-response-construct"; import { CloudFrontCacheControl, CloudFrontCacheControlOptions, @@ -14,4 +23,7 @@ export { ErrorResponseFunction, CloudFrontCacheControl, CloudFrontCacheControlOptions, + ErrorResponseFunctionOptions, + PrerenderFunctionOptions, + PrerenderLambdaProps, }; diff --git a/packages/prerender-proxy/lib/handlers/prerender.ts b/packages/prerender-proxy/lib/handlers/prerender.ts index 27cdb06f..1f9af75a 100644 --- a/packages/prerender-proxy/lib/handlers/prerender.ts +++ b/packages/prerender-proxy/lib/handlers/prerender.ts @@ -49,4 +49,3 @@ export const handler = async ( return request; }; -1;