@aligent/cdk-prerender-proxy 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import "source-map-support/register";
2
2
  import { CloudFrontRequest, CloudFrontRequestEvent } from "aws-lambda";
3
3
 
4
4
  const IS_BOT =
5
- /googlebot|Google-InspectionTool|chrome-lighthouse|lighthouse|adsbot\-google|Feedfetcher\-Google|bingbot|yandex|baiduspider|Facebot|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator/i;
5
+ /googlebot|Google-InspectionTool|chrome-lighthouse|lighthouse|adsbot-google|Feedfetcher-Google|bingbot|yandex|baiduspider|Facebot|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator/i;
6
6
  const IS_FILE =
7
7
  /\.(js|css|xml|less|png|jpg|jpeg|gif|pdf|doc|txt|ico|rss|zip|mp3|rar|exe|wmv|doc|avi|ppt|mpg|mpeg|tif|wav|mov|psd|ai|xls|mp4|m4a|swf|dat|dmg|iso|flv|m4v|torrent|ttf|woff|svg|eot)$/i;
8
8
 
@@ -29,7 +29,7 @@ export const handler = async (
29
29
  domainName: PRERENDER_URL,
30
30
  port: 443,
31
31
  protocol: "https",
32
- readTimeout: 20,
32
+ readTimeout: 60,
33
33
  keepaliveTimeout: 5,
34
34
  sslProtocols: ["TLSv1", "TLSv1.1", "TLSv1.2"],
35
35
  path: "/https%3A%2F%2F" + request.headers["x-prerender-host"][0].value,
@@ -49,3 +49,4 @@ export const handler = async (
49
49
 
50
50
  return request;
51
51
  };
52
+ 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aligent/cdk-prerender-proxy",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "A Cloudfront Lambda@Edge stack for integrating with prerender.io",
5
5
  "main": "index.js",
6
6
  "scripts": {