From 71d49ca514943947301fa01a33400d0629f7f129 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Wed, 12 Jul 2023 10:04:54 +0930 Subject: [PATCH 1/2] give higher timeout for prerender to talk to the backend --- packages/prerender-proxy/lib/handlers/prerender.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/prerender-proxy/lib/handlers/prerender.ts b/packages/prerender-proxy/lib/handlers/prerender.ts index 0e3adf20..a729a1ba 100644 --- a/packages/prerender-proxy/lib/handlers/prerender.ts +++ b/packages/prerender-proxy/lib/handlers/prerender.ts @@ -29,7 +29,7 @@ export const handler = async ( domainName: PRERENDER_URL, port: 443, protocol: "https", - readTimeout: 20, + readTimeout: 60, keepaliveTimeout: 5, sslProtocols: ["TLSv1", "TLSv1.1", "TLSv1.2"], path: "/https%3A%2F%2F" + request.headers["x-prerender-host"][0].value, @@ -49,3 +49,4 @@ export const handler = async ( return request; }; +1 \ No newline at end of file From 66346da5c5588f51cc0adf698b1cca44b1f8bb8b Mon Sep 17 00:00:00 2001 From: Chris Park Date: Wed, 12 Jul 2023 10:12:48 +0930 Subject: [PATCH 2/2] fixing prettier --- packages/prerender-proxy/lib/handlers/prerender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prerender-proxy/lib/handlers/prerender.ts b/packages/prerender-proxy/lib/handlers/prerender.ts index a729a1ba..27cdb06f 100644 --- a/packages/prerender-proxy/lib/handlers/prerender.ts +++ b/packages/prerender-proxy/lib/handlers/prerender.ts @@ -49,4 +49,4 @@ export const handler = async ( return request; }; -1 \ No newline at end of file +1;