{"_id":"@dolsze/next-aws-cloudfront","_rev":"6-0efbeb0b2e5041269b8cac15a9687bc0","name":"@dolsze/next-aws-cloudfront","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.9":{"name":"@dolsze/next-aws-cloudfront","version":"1.0.9","publishConfig":{"access":"public"},"description":"Compat layer for running next.js apps in Lambda@Edge","main":"next-aws-cloudfront.js","types":"next-aws-cloudfront.d.ts","repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"keywords":["AWS","Lambda","CloudFront","Next.js"],"author":{"name":"Mykyta Vlasov","email":"dgygurdenok@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"homepage":"https://github.com/nike1v/serverless-next13#readme","devDependencies":{"@types/aws-lambda":"^8.10.92"},"gitHead":"dfd820e1ea96e67243e14cc711caa2acac3f57b8","_id":"@dolsze/next-aws-cloudfront@1.0.9","_nodeVersion":"18.16.0","_npmVersion":"lerna/7.1.4/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-aIf1bgCRc7HQVtGcJGPWTEEayRSqHcXQvDWjcnqZq8JRtjQtGqncM7zk6jcedsEuX7OAAek+CxZq5jHjbTWW6Q==","shasum":"5ee54fc1a6a395cbb9e24cef8eec4cee28c58b3d","tarball":"https://registry.npmjs.org/@dolsze/next-aws-cloudfront/-/next-aws-cloudfront-1.0.9.tgz","fileCount":9,"unpackedSize":43080,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVGW4TA0+iwCVmorMnmgNRySH+3DgCiszHepdnHWMDoAiEAjDzbzS8G4/MjrkoflYnUlktVZ4DZTiodVWY9P1KYX28="}]},"_npmUser":{},"directories":{},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-aws-cloudfront_1.0.9_1690984736428_0.07576696329340638"},"_hasShrinkwrap":false},"1.1.6":{"name":"@dolsze/next-aws-cloudfront","version":"1.1.6","publishConfig":{"access":"public"},"description":"Compat layer for running next.js apps in Lambda@Edge","main":"next-aws-cloudfront.js","types":"next-aws-cloudfront.d.ts","repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"keywords":["AWS","Lambda","CloudFront","Next.js"],"author":{"name":"Daniel Conde","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"homepage":"https://github.com/nike1v/serverless-next13#readme","devDependencies":{"@types/aws-lambda":"^8.10.92"},"gitHead":"4088f8af69089d8d0e94a6b5d2913547ac8680fb","_id":"@dolsze/next-aws-cloudfront@1.1.6","_nodeVersion":"18.16.0","_npmVersion":"lerna/7.1.4/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-tkLX660Ks99V8P3C8+tJPMMbWCRxjik58m9DQmn1MVKibw4xCtG4wkq3+OK9+vIaRiV2iUrkG5V8cc4gKeHoNw==","shasum":"fc771ec97ab359682f6d9a27640e81d14ab10f1f","tarball":"https://registry.npmjs.org/@dolsze/next-aws-cloudfront/-/next-aws-cloudfront-1.1.6.tgz","fileCount":9,"unpackedSize":40288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7sy/qZqIe4Gn7SAqNT3aVA68UQr14a9+bnk7byyUUMAiEArHFt/FjwYVfQsuV9WOoWjsmZyXqnHswosUvVa7tiKgc="}]},"_npmUser":{"name":"nike1v","email":"dgygurdenok@gmail.com"},"directories":{},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-aws-cloudfront_1.1.6_1691081186662_0.6163104318877104"},"_hasShrinkwrap":false},"1.1.11":{"name":"@dolsze/next-aws-cloudfront","version":"1.1.11","publishConfig":{"access":"public"},"description":"Compat layer for running next.js apps in Lambda@Edge","main":"next-aws-cloudfront.js","types":"next-aws-cloudfront.d.ts","repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"keywords":["AWS","Lambda","CloudFront","Next.js"],"author":{"name":"Daniel Conde","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"homepage":"https://github.com/nike1v/serverless-next13#readme","devDependencies":{"@types/aws-lambda":"^8.10.92"},"gitHead":"7fcd80e107bcff072e9e3b5b4bd092405b3e4307","_id":"@dolsze/next-aws-cloudfront@1.1.11","_nodeVersion":"18.16.0","_npmVersion":"lerna/4.0.0/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-KF5vSKSbrpKkzckcF6tq77c9XNibsb0q7UVfU2QnO/CGFJEMrRyezeGO5olwxL/5egqktV2Obr/miZoJv7ShVQ==","shasum":"6497110c2bd2b68f9322489920ae304cf9055e4b","tarball":"https://registry.npmjs.org/@dolsze/next-aws-cloudfront/-/next-aws-cloudfront-1.1.11.tgz","fileCount":9,"unpackedSize":39320,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWO8ivZDFGCSi1HGYgd6E4JRbiPzP6Bndw9EbGOP/RygIgBXUizGB7YT2sYVcDioGPvN/Q99XEfw2qYjVrLUQeWek="}]},"_npmUser":{"name":"nike1v","email":"dgygurdenok@gmail.com"},"directories":{},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-aws-cloudfront_1.1.11_1691086194909_0.7413244947724871"},"_hasShrinkwrap":false},"1.2.3":{"name":"@dolsze/next-aws-cloudfront","version":"1.2.3","description":"Compat layer for running next.js apps in Lambda@Edge","main":"next-aws-cloudfront.js","types":"next-aws-cloudfront.d.ts","repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"keywords":["AWS","Lambda","CloudFront","Next.js"],"author":{"name":"Mykyta Vlasov","email":"dgygurdenok@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"homepage":"https://github.com/nike1v/serverless-next13#readme","devDependencies":{"@types/aws-lambda":"^8.10.92"},"gitHead":"bdcf865d6d6d80411c6f3c977c5929becee9aad1","_id":"@dolsze/next-aws-cloudfront@1.2.3","_nodeVersion":"18.16.0","_npmVersion":"lerna/7.1.4/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-GHb26mbMeeiC6J2/NXRoJQOto7CY2n3hrHxOiVmdqTxdplaEbm745AlVWOp6GxxZdrnZIXN3mlJskUzBRu9Asw==","shasum":"eff03d742719991a03dfffd216749280279785d7","tarball":"https://registry.npmjs.org/@dolsze/next-aws-cloudfront/-/next-aws-cloudfront-1.2.3.tgz","fileCount":9,"unpackedSize":43521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDskcp5EmvUr/BSGYCKELKTK042cEYpv6nOFCxlrj+F4AIhAP2rFKCxz3UO24j2bSKPNbXoy4qkoM9a5URe73bCkQ4x"}]},"_npmUser":{"name":"nike1v","email":"dgygurdenok@gmail.com"},"directories":{},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-aws-cloudfront_1.2.3_1691136150799_0.10946354174473005"},"_hasShrinkwrap":false},"4.1.0":{"name":"@dolsze/next-aws-cloudfront","version":"4.1.0","publishConfig":{"access":"public"},"description":"Compat layer for running next.js apps in Lambda@Edge","main":"next-aws-cloudfront.js","types":"next-aws-cloudfront.d.ts","repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"keywords":["AWS","Lambda","CloudFront","Next.js"],"author":{"name":"Daniel Conde","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"homepage":"https://github.com/nike1v/serverless-next13#readme","devDependencies":{"@types/aws-lambda":"^8.10.92"},"gitHead":"4ac6bdcd01566636bd805ed8a7eae2cdb9500021","_id":"@dolsze/next-aws-cloudfront@4.1.0","_nodeVersion":"18.16.0","_npmVersion":"lerna/7.1.4/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-Dfdzuw/kO5tNKo5AeVUG9G/fmJdZyxFhOk8caGbUJK8RaZ6cqoxhiHiAltK8sdxW05QII3nFqf5eHHxQkthwvg==","shasum":"dcfba0ec71081b2caf08396555abdad27dc2fc0d","tarball":"https://registry.npmjs.org/@dolsze/next-aws-cloudfront/-/next-aws-cloudfront-4.1.0.tgz","fileCount":9,"unpackedSize":39655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDxP4CJlPqXh4+UewbMFs3GToJSw3kgWmwKCxEa/W8o2AiAL0kqh4a3gD3IqwtaSHSNHzJpCYPML3i4of1bdznvozg=="}]},"_npmUser":{"name":"nike1v","email":"dgygurdenok@gmail.com"},"directories":{},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-aws-cloudfront_4.1.0_1691188120942_0.7538176746949983"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-02T13:58:56.357Z","1.0.9":"2023-08-02T13:58:56.618Z","modified":"2023-08-04T22:28:41.253Z","1.1.6":"2023-08-03T16:46:26.771Z","1.1.11":"2023-08-03T18:09:55.088Z","1.2.3":"2023-08-04T08:02:30.975Z","4.1.0":"2023-08-04T22:28:41.136Z"},"maintainers":[{"name":"nike1v","email":"dgygurdenok@gmail.com"}],"description":"Compat layer for running next.js apps in Lambda@Edge","homepage":"https://github.com/nike1v/serverless-next13#readme","keywords":["AWS","Lambda","CloudFront","Next.js"],"repository":{"type":"git","url":"git+https://github.com/nike1v/serverless-next13.git","directory":"packages/compat-layers/lambda-at-edge-compat"},"author":{"name":"Daniel Conde","email":"danielconde9@gmail.com"},"bugs":{"url":"https://github.com/nike1v/serverless-next13/issues"},"license":"MIT","readme":"# Next AWS CloudFront\n\nCompat layer between next.js serverless page and CloudFront => Lambda@Edge.\n\nLambda@Edge event structure documentation can be found [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html).\n\n## Installation\n\n`npm install next-aws-cloudfront`\n\n## Usage\n\n```js\nconst cloudFrontCompat = require(\"next-aws-cloudfront\");\nconst page = require(\".next/serverless/pages/somePage.js\");\n\nmodule.exports.render = async (event, context) => {\n  const { req, res, responsePromise } = cloudFrontCompat(event.Records[0].cf);\n  page.render(req, res);\n  return responsePromise;\n};\n```\n\n## Options\n\n### Gzip compression\n\n```js\nconst { req, res, responsePromise } = cloudFrontCompat(event.Records[0].cf, {\n  enableHTTPCompression: true // false by default\n});\n```\n","readmeFilename":"README.md"}