{"_id":"@sls-next/lambda-at-edge","_rev":"238-a553cac0e74d9e33d0b327fd6fb8246d","name":"@sls-next/lambda-at-edge","dist-tags":{"latest":"3.7.0","alpha":"3.8.0-alpha.0"},"versions":{"1.1.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"0cd9252ed48401c0fd4604f08ad8a27a9983ce46","_id":"@sls-next/lambda-at-edge@1.1.0-alpha.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-ZDAYIVk2TsFmcf+e6xusiuplRSb9IVcX0E184+ROldJ0AXO30g9rlUEH9dFdOLgZ03B4GVRQJKExsMTcI/0OCA==","shasum":"f5e0441ba25e6b1d2a947f32df15177056736c36","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.0-alpha.2.tgz","fileCount":24,"unpackedSize":25540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeohS0CRA9TVsSAnZWagAAp88QAKSKaz+2zRtp5CU3BhON\nQyTMmY02LQvdUo8FUX7E2ocK3Vowk1g18oPZsEXmplTUjiGZ3Tx1CHdgp3S3\nrVx+PN0Ckv/eVwRg16kVl+uX31XIMo5yLvcmSRIikmQML/DiR+JYc2FaQBEV\nWrpC1dW0hV9PmlHKRueb0uCsfMg96A9yA0yIbkTcENrSq98YbfGxfiSRlNbY\nD2+sb+/EHWdrnhb6vT52LfxFIXBr3FX4uAdI8uHF5rWLUvg5eEkvz5XVMdVg\nNNKiHqMpnOStgTraExn0YFL32hCdj37mrhG28sZiWuTbApKP0oSfcr2qthJx\nYPj5y01SLfYFViHa0LeqnzNm7SOLJ+7wglTmBtXxN7fMXheJPsu603lW22Yb\n/wCu1W48aonH6YFpdJZM40xRvDru6UOcelA/Sl11LrNIiavoof9lcdD7VXsl\nCrdQBR+1GMkEjK5uaXB++zH6f7N5t9kiAFEy/7RIJ9YG/KDFr6rgcWMnlOEr\ngktYDchSTG4HS3ejrr0ES8hxqrkfQhwdAbieok6Ur7a85NwauVeK518j2fjn\ng3lrrjPt0Fl9lyvIZEO6Fy27oLeAbWnXbCC8ur9LQbmSoedoSuTpShqtIMjy\noKCNzv7Ai4AFDfeuX2Z9dM5pSHB6cq+UnFU076PNlnAt7YmmOcgaLbOV10/l\nII9A\r\n=baI8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRK6hGJbMUuZuEelWC0nAgRgz8QuICZXYvIcOeCyYLYwIhAOIsjuhOTxeD5X77pdySqGg8zWVx0flQW8lKZX0t6q7f"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.0-alpha.2_1587680436157_0.6312633423057807"},"_hasShrinkwrap":false},"1.1.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"454dda44f767d4a4fb22151b8415d63be6c17836","_id":"@sls-next/lambda-at-edge@1.1.0","_nodeVersion":"11.12.0","_npmVersion":"lerna/3.20.2/node@v11.12.0+x64 (darwin)","dist":{"integrity":"sha512-lsG7+vbT6s1jir/QdFvBNzH2S0K1zBxihaplLOe/cpcR6YW58wWvjlXjuK2nchSMgE9umfcKgi6isBgwl7IUlQ==","shasum":"ff8a718f54192ab4099d3665ac6d21cede5ceb80","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.0.tgz","fileCount":24,"unpackedSize":25762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo/MuCRA9TVsSAnZWagAAEWcQAIJihTHF9NpXOVnww2oq\nSm9xTty6eVgxgoBmn9TCLcssYacsqL2t3TD63EIQcFE6jvz15MQRD9Icwdst\nSob6oq6vBXIkACISe66Nblx28fjW48zhMdLq8XeXh0vqub4zNZ88R1XfYDLG\nuPK/DlIylw96d15j91ZNJU2tcYe6WyLulgFllrkP6J/EHt90LOl0LlRq4jnO\nckAqNYglDbXWMtzK+T92HlqSIycwA3nqswMWU41hLTIGWlfyCKN8Bc9P5o+1\n4MJwytowdhuV8/JPtTV942+MUHkJI/5dOZ/B7q8jgknhNQ7NdEn7HSM1LNuH\nHVZefPk6SHI/y1lCH47IVYupARICaLGzC0dHI/PNacKURx/uQxQH9n+PUZzb\nmWQ4cqMLhne9YGYuJHgCC/NnTN2H3dbOWEUfXiaavMVUFkw27GCpFHEaVz/n\n3W9O7cVUKaq3wb4Pqkn9apTCtiIme5o0JODkIuaSZ2cLdXrb1XGJ/+sQKMP7\nTmgL8zFkWxRuwn6ljSAeVZHo9dE8SGjeYoa9DqNXaD+jpVkN6UJrYmFYpZPy\nIC/I9yxGxurjVwO4Mv4qfC2Zv0lOiIkDmJXvjRwe3ePDsngKeSIb4zwMTBGx\nPuptlSNeVPXD3+b6HHHXA8uAT/5HvrlAHiX4lw8TuOCazss+/K7kZPLSnUhf\nu6Du\r\n=+aHF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlIbVzGvGn+ipmd0FjR70i0FdG5U1YcWT9eOEUdDsG9wIgQ1P60QI4G9rimcYOcP8NSYJRye1bUFspZuEf9c3cSyk="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.0_1587802925999_0.4841192467570228"},"_hasShrinkwrap":false},"1.1.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"51007a2e95f1633fe1b0425a4e71038432ef3b64","_id":"@sls-next/lambda-at-edge@1.1.1-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-irLElG2XJJgD9ZQZFKZX8DydDw4kYKOPBA/jEQb4TzgY++6XFEwJ09yi5bQEslmT07VvC7pqzWpUhRsjFjMuDg==","shasum":"c3dfabf1e54ea7bb206b7f8dea771bfd6f479adb","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.1-alpha.0.tgz","fileCount":24,"unpackedSize":27539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerrE8CRA9TVsSAnZWagAAcoQP/RyauBlWpM0E3bOMjvXK\n4TKOaG2Ol6+5vSuM1DUVY3upysmocLX/0BIhOEJ4Iv6FiK+s013woKXFT2sw\n7o7WdwHFluu//AhrTbZsbZAkAILHRamn7MIAkjSqyJClaezKDhbqlssbLmgC\nSvqLCTx+4D0i0XJDgudmZs5mNckcM96uPPjddv1UxaC4NGcNPq4WRciWJZXn\n0fm8wISD4RDeA5LUX3vPtbkHy4knAdVnUnhAYs9R40Ied0ZwASrf9YhTuPdK\nPyNm4+QSdUK1wSWtTMUWhgCPjYjtjkaWMCVfQvnZeAfkJqmco3KwkPdVwkvo\nMIqv4zeeur/344xVNP48BGQ3DAjfoqmLf3c0eZ54IRQQSkHqOjH/Usbay3Al\nTDH9JHr+s1U5Or6iixA/evWVTajaGbniUxpnnDiEGkTtmT3W1vxnCj/Iyv1N\nH2jWD5cEXb0M65TD+PNIvridHZCSvE9TG/w9zyQniNfr5iCgxe1tUCQ1LhI9\nMA1hMXp9is/AEm2+mTZssAOajEP1bgOMcJl3j48wV+QhNuU97RVyfdSXft2M\nWJjNCmqoUWIY78YYIez4I4DOTqEMV5wd6PSYsGUR/3toOjlOIseVbl5Kfxd+\nUf/6NPF8KzBEGk/8UsZpaFupPPXDghu144B0g50WoQIr/yTgf//LJct/dPQ0\n53fa\r\n=9R0C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMPBh+yd3kRb9n4jdwFfIYRBKorgQidFrTDgI66aJ1KQIhAKZH/qs0ieHhwjgi5z7K2G+ovuLCGfdIBolDSmsQQrX7"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.1-alpha.0_1588506940075_0.310178014640065"},"_hasShrinkwrap":false},"1.1.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"14fb4f6e57777bae15fbd29f4fa1a513191da30a","_id":"@sls-next/lambda-at-edge@1.1.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-pbvodeJdPpLP0Il7uSODWsHn6oXq3nU7RMlvkvZLtSHJoOUd7b76aAlvYkZZZ6hYlfDgfjqoSfjwptQnrWeXmA==","shasum":"bf41194d5933d573986ea9d527c39d81306f8b20","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.1.tgz","fileCount":24,"unpackedSize":27762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesGEOCRA9TVsSAnZWagAA1ucP/3v/oLBxFsDM27z4De/z\nLAyCkUAvImrJNc/kGvjfsl5dcgvQIEgwBxXlK+48oVfE+jNV6IZea6h+i8PX\nRkZFm3bdeujNx2goKvMPDBaKDI2GevqPzoaKE4PNYE5IgLDdNsT+fzc+wdb2\nzfbiIIFV583wIIBDT8mhFRtQjKs5FR3FwlQfFQfERCxRDIfHbyfiUWteuO95\nDiXcDHb4zZPZ4SPV3fvXSjZRepMfmsgMtLnGtB531L+HzO2ij6wQhtzVbPYU\nUt+wY5LlqCmbuiV7BrhVkmHMivgeVgjOM9b8ioPN/LHeL+jMhD7VwOmzk622\nWBpuIuM5TpyVAyKsVAlLBVJmEGz1MPB4DwFebRiP2CsVPhhFBCifW2TWvJkq\nOEg5meSauEaOhrpACSmslSQJc16MUgenpASZ70x1Qq1C5ZJ6mqOmeEgjcyis\nml/B7LRfk1wHIaOPey/KyjVmZfg7VSDrovn6ZZP/CA11QnOxBUTM9IjbhbNE\nhhyL0ntisG49K8Q6R+96sRt6hdyBATdX6+xWeaUcBX6YSdLyBnOHgMVWXYGS\ns//JyxENO4j8XJJRE1ezGDSqzULkB77jsxwzjUDMj2Pmt0Jp2Rfd7ZmysIdE\n89sUGb+bqjh7qhpZ62RCxgtaBKDOzL7ylROkan40lDHcBbBWb9uG4YL/NbUM\n92Jq\r\n=XGoQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzNtlviWuWtH0dykKHIzRdRtGSvX9huQSgto2M8ldbXQIgB3USC9b2j/jbrkZdxy4QZU/coJz+uqc0YpwveK3rSBo="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.1_1588617485609_0.17602898468406236"},"_hasShrinkwrap":false},"1.1.2-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.2-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"31878b8812f1a00408407b8041bacfd5cd57f9ca","_id":"@sls-next/lambda-at-edge@1.1.2-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-VxclegUWCqk8fZWlQp0YS3qrJWxd9X7K9FI/QyAQOBAzkWim4X9eKpm1IcuB41DKq9PbqGhBWwCP4SSg+TLqpA==","shasum":"75da25b40d2a8795c7585abccdefa334903566d4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.2-alpha.0.tgz","fileCount":24,"unpackedSize":28872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesaEACRA9TVsSAnZWagAApi0P/jqz7tKdmw5dzVbgfr+Z\nR6fDGQKW3XhnFMsX54TBqMnBJFKUEkQoWVFs2khAINdaYqIOgPbE4xkpGQ+h\npUNlUyRRZZE8RHnHV+rKn89Qv/y68Be66biqjkJl3GI4TpRM9FGfWAxHYC3X\nDaEaGGG1E/s7rWFpNNhRou8R8OM0dQvNAH9krAb3ph0Covq5xZ4cvKItBRFq\nYiDfy0PJrclZ/DBaK1fApxM6xBxb7nMl/MyKUAJDyan3ZfUHVWMSMcSsniTx\na7avJNVaLLRgvR4GOFWPz8CroW32qEXruASIGQ3ocflaYjjJQT9HnHG/RfnP\nPG+8RwSJrnQiNhsgo4V0MJ0u42XRMEHpJcvZhp9HzC+Gf3b2c5/ECBU0Y+Mx\nL/ATPZ4QGOr6Wl6ATSJJwf1U02/7h6SWvd6BlyaGbmfXH05IVGqjLeyTeuMD\nXrT+yGEGjwajMFp3pJv0OGOlgHkX2jT1CKUvEhrdjHnJbTudt4ErOMH9VelE\nRvur4ig3zzvexBuSvGhPrfl1DjgBCDytj6RvhVGD+qvfPu5dEyDABVFxL9ZI\n38sX93W2hYzgzxmvq6IhuiRqlpcJnUshwhXRwyMf0urNVa5D8H5y6IPbIEoW\ndV9kl7h7MSNs9kgvQXAeVhxcbsovZvLZQAflSCmF9VqDLiKX3HNRfJktdOyA\nEHe/\r\n=EeHE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4PXW3H/orWt+l2S8LMCD6kYahrrQyqT65CyMdSJ8xFAiBwtQIYcOqjoBGLhCwM24CN7S8YquxtDEPA3TbBH3ng3A=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.2-alpha.0_1588699392084_0.13010131988616935"},"_hasShrinkwrap":false},"1.1.2-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.2-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"b245578a1adc49849ed5bb1b67e9eb9c7f9cb289","_id":"@sls-next/lambda-at-edge@1.1.2-alpha.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-azg3+0ffNtvx1gUWTc1Uinpu/n+C2aV0OvpUtm3xbw4lGzLSxgg9bWcH3o1WRPAwIEQSYQ6LhxHUosXjdp6OLw==","shasum":"4eb8afe31ad41b8e5baa25c6d23fb9cd2ae6873a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.2-alpha.1.tgz","fileCount":24,"unpackedSize":29377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesbBlCRA9TVsSAnZWagAAOukQAJGTxg09o6UVRgBFLhR7\n5HRQ5VfP+81kfV+hDcN82YJzGAEEoyko3gpkd+GeZcIAPu5iJVuzSychRiva\nv+YkB3Z9XtbfukrkJlHmdwwHTNvGdBAatgd8LJNaADOWMkJzQZAlIgnrR/ef\niSH/9eS9vLl3ObM8hBiW0uv67OE4Jyt5aslm1ARPgx3u2rtzlFPr01aNrHMC\nmQlYAD35ePI68i0+q2pNiWsIcLauplF/kZGi0GnPP0LiUKcitiXgF+K0ddH7\nyboNjiMF26I6CEmOjKonZS7P/q0wqaHZTvEOqhu4X/g0NEnq4yG4Otrioq5A\nesgSNh9TgtU10Vnsa2M2s236N45hYWUVKvoo9FtvMcY2zUZk/zswUcYwVSXU\nLodZhdCiOg6YiuJAZbsKF/RrcpTad+xaXiNUeAzZc/Vb7VkGISeprwdcp09a\ngCjtm82RVttx1OXpksSvjmf4PF+dFsdpAakmgoB6rT46jeXcpYpXGt+272tv\nyaJ21MlXY/P93Jy0qz64gqJEDK6icUwnLmdBul1jzDnK2n8rJeG2vyW+15Ul\nEzxnnsvQB0zvopM2kikEeoiXnAhCQIAxX9PbTML9up0Sv6/WcEG6HrZqR7hd\nvtKpJknEvZmIXROADA7u3eHmrMdW3SFILIUSrqJ8an6U0O96JGfKzQ/ok2iE\ntl6o\r\n=S1vA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsQLcxklqo4vGSzYaZJvJd4KdWHkcTf+vZMOhnbBzm9AiEAio1lzeFGl6QtkWbm7rpviIgZtWORfB85HUpBrERq3G8="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.2-alpha.1_1588703333529_0.4964800754868668"},"_hasShrinkwrap":false},"1.1.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"47fb657f49ba68cd79a8b8b4328c797bda9e7d24","_id":"@sls-next/lambda-at-edge@1.1.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-BTlrznGgV57uqQv9On3D4SJ1ickBQsAwAeF9h2WMLGyimLphKs7C2IyYZmrl06k3HOtFryBbpVOOnpWgKlSUmQ==","shasum":"c3e58d0cdd9ba5447923543708ae481c9cf6c467","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.2.tgz","fileCount":24,"unpackedSize":29600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesbLLCRA9TVsSAnZWagAAfR8P/2vmBal5R7J9ESD9f2lt\n9ExZWnrL0HzGBkEC/HtcFHd4+oiwJZfW6YYWdxBB8V11DoLTUEWS4VkOSGCh\nMz6c8Vz+8cT5hRAjhpllNI3gKHEUpf8Kf7YTqSR0c4Bim9YBjaamWcmpAVCn\nO1qS6TjJX5TfpGnIbIo4kR3Lba1YdKZE2/VHruwAz5U3fBHHJeR+PGzpSb3Y\nIpVjtViQcFUhShdm20GXyE9Kif1QUe7tIPtEFkGPWaEZnHccf3mc5VwHpQKk\n1DhOPPs8q+N7j/Yp/uDU3eX39VE1nuyuls2+wXt2JHocgUjDc1ULVFtQzGtK\nsbm0sIp3TfHRHg7mvIhulhjJuYQPx3wW5hwMjsrgJwBAIPiwFQKniJeA5UFH\nEcAvcZuQ09u2T0In+YyDHGrSZGrvcohzBLb/xXvYg8aOGeG6oLSCNgEY/lpK\ntLUaRcOWQ4kdq46R9WZhnPDBP2biFMTFoGWKRtmHiVEJK5WLxWHCZL7U0wGb\nclQDUDkiC2quSnY+yhu61N7iU3PsZpvyKTYXyqQQqJCCtNy/C/gnBWFcqIMX\nHm+8gX4bJPd0FQ66BnEY+Tx3IccXJ6GugDnJUTMk04zBAp5Nd+h6fM+5jKzl\nyLO6fXUERetWj4CLMD4x4AFx0AML8iTUATOC3iznwtz0AVVDUYC+OxNi6qES\nroEp\r\n=ufE7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEaX9G7TnqlozX1I2N7r5qhEBBWmMTIPSkHOwoPYGqIPAiB0rxSE6szC+XEpOHh9O1D2/EdFy6UxXQttJ4QTAH0OgA=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.2_1588703946756_0.9742337559281169"},"_hasShrinkwrap":false},"1.1.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.1.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"eeb8858f008d6d09ed3f510fb1e67002198b9d55","_id":"@sls-next/lambda-at-edge@1.1.3","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-ODXiNhhBLJDDc0yVInjzemf57oP6yH18BiX3lAkpFUzNKipxPdou8EV69W18qd6cOTd8E9pGF98dipk182gvDQ==","shasum":"9ab325e9a0edcb1d04a8c0a52215c4c1fb3ac645","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.1.3.tgz","fileCount":24,"unpackedSize":30080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetJH+CRA9TVsSAnZWagAAXR8P/2DRklKIVnltJvh17QvY\nnt6ujhHVas5ci0aKMrA+8mBQMh3QwRfxD2a4cPSNd39qCx5GnQ5q+ROa+pcL\n4sEeKZCmjqmAf8KyHEToK0T/SC/xbkV7WbHBe003882Qa9SJe01ppG1cX9qx\ns/FxnYs8b3ItMkGeITzEgYewJiyZiZLesWr+hL0mkGStZFzs1V+SBo4+Y6Rx\n/CZBF9IarqsVEfBMXuidT56LEa+U+X3lvvdvUYGBZzGK7EEXIkweXKRQF5Sp\nmUsG57OEtpKk30j3rRJIFKC86+wa11UWWkXT+IksNODXBkhSiYYOyp2RpV3L\n74wWP2AfKNWhTz3hiXowplWyO1fQxl/WXphcS4B/pSV3ZAnqDeQPLDq+hkFB\npYVE69KNaQnmSwY/QxJz8krzjTOGQ9JvmFszRHl76GUZyCMn1cCLFNetueSm\nyGrmj9BoGZ+xTaDV+W9CxF3tU21wMAW4CjjxSVrr2SyC0HQN7o/rDH7OQtmt\nQ6EZXyf8rVKwNIGxKHxoN5ZFYZCzNKZqWBFyOur8ezssLFkK6684ZN2Bz2QR\nyW6+sIGusZ+IXiYOTUaGn5D2a9Jxb0FWcNUwEeau3/zrBWyzcF/H7plehNCh\nyGmPXcOjvKwqUanuwLs7wnSJjlvmqhT9GyJGx2FUK2TUbFg85w+a2hMZu4Ne\nsgy6\r\n=zsRu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClOUU0cEGf/o96GFghhJ6ahLooLy7KknVB/0UwYlNrFAiEAvUUdsOcjNyK1VzGLFKcwqEi4yDF7lpxPuZmYNUhBW6k="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.1.3_1588892158242_0.8776025048735452"},"_hasShrinkwrap":false},"1.2.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"5b52080f8864a3282c7795b4d1e80b01662f7e23","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-i5gqh0h0wTJ3fTcEsOBjFYp+fwFvrQ77B+ov+g4/iebdLV4BfSBeNGtdJ25JTFmuIW/8QVZpf+VOjpCnYSIJFg==","shasum":"52b516fb7221e651ce96bbd2e48694a5f6e2d0f3","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.0.tgz","fileCount":24,"unpackedSize":31246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevxiNCRA9TVsSAnZWagAA36UP/2oeP8XKrHX/HmHb23vN\nlRpamReMIvK41qPpURJ1claik8F37A6tgUgmMIa8gNiBJHjzIqAuvlSWO/Iz\n0aQjePFro/MTTgUBAkSYQA9lBMjlJg1CmyWmg7CfCbS6uq4T8byclhaMz3K8\nvvPDjOxW2EYF9HsaDh6t93eyx/vg5sSiz3vJ3sAwMJVKIPA0ZIrnCh4v2k4a\nI3l22eP4DpgSvkRR2HPItwSIZJtboGX81d+9xoX84U+sg0U2UgFBrbFmvB1T\n4EOfI/6PRVn3XmXvLFQo83mzoLZrK2dBdmq1O+mSJHG3P6LhCoT+ZIMukb5t\ntYJLSunEnvNU4hXsTNgaDAd+TEgoU4LUZ7gvLHs2y27QxVM6n9czwJlwxkWE\nc6gaJFxbztNHgItiVkCeHQ/cYADFDlJW+jP5u+XZHJuMOWuI6uo93pKd9A3j\nEBSgSXvWQCXmuzg0a//zpdPMjUEBBei0Gk5KPEaEMbK6M7QrcHxyog9NUcqM\nbNr4ULYqfKeovrmYl61LsCoS6mZpv1wCCVVN4Iyt4gMcJtz+q/0FqFzQY2Bj\n6wgq4jeZmMnf1TJVKkTRc/5n6gMMd/UP8IoL/tpVIggxiTbg8nzIOF2hItfZ\nyrtR1VOD7Gbos+MO/vHOTexJD4WuDdZfmXcUzpuTKiBdJFe0d0jhv/B7sV+r\n+JUd\r\n=sfGt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlQUlrOy3TutpawVkePUav50V56LztHu+iDqA7iV0wKAiEAklD2aDvugPdAGrZSi1lNJYxnEduAiPgyxxsWoeq4emg="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.0_1589581964597_0.19335655519034822"},"_hasShrinkwrap":false},"1.2.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"peerDependencies":{"next-aws-cloudfront":"file:../cloudfront-lambda@edge-compat"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"b154448732ca841b709cf7b83ad49512c61129ce","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-BOk3YuFcXwJBX1UuisygnO7MoLwwBo9SUkqTEMUpeFPvn1Bi/A6wQYNqqAc+H5AO9D+NUAQxiqvL+dVqKtk1jw==","shasum":"33148e74de33d7f3eddab958d0583415ee7a8b29","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.1.tgz","fileCount":24,"unpackedSize":35094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewaujCRA9TVsSAnZWagAAtH0P/2708TK9hei0dNLY4vYi\nPe+D8F1LzaJMVVPn3p7i5aH/0paYnzu0euMiH3/ptd41pSyYyD+UOOFXoXMC\nNjMYbnwOCchQY+hgYFBaRARWhGKxYFQQXDSxaxSvQy3reOqiLqMtff7shIMb\neqPuKwbpAwcOTURWw0YjFZfgoQq1MIKFLOfEErhLVEJQhp5C6nqmNvGTChVu\nvhpss/9dZKpJ0/J7APA2RKZ4WUMMVFv7HrI1H5ZDYU47vWdqYCtCpCDRxtCT\nxrQPH6gBWi3PVACRJ/+8Mmq2oIpHj4Ec+AjRjr7kW361GFt/0/1M+zu5iXA1\n54rxykBm8f8J1vNWst59IiHvFPaga1ud0BL5BxSZnYeBg2oqIn+M6IhEPwi/\nnFXRoBMNXX6jkc/3D1cgpv7EmZCj76MCuorqzi8cOAMNgwayIG7PFPT093UH\nk5lc7k688DetGdMxPc5WeVRjb5Dd/kkBHr3JQBHxlMNYnzgS3NXjloxjwPk1\nzVjtUi0PIEt2Y0oBYAKqljC1H8tOy7W0YNwWYqFt4km6m1KQHu94GoygP9VK\nIPdVbwgdUOLqw+jc5asRLJ1QWsXM86GHqgl0HOfK7HMpqWEwgQR2Gx4Yp0aC\nZlUzh03eJCgns0P0ObznxvipV7aP1gUJC+9Y71ZGkO8zNh7/8vY27DHlwJyh\ndkfj\r\n=jMhR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDelqLcDiqwWTmWluzOHQW45YftoZTeuzsKLSaJPeF4FAIgNTHY7SOCmfvCA5rHMgrxkEmaIBH9IhagICKG2GJjHXY="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.1_1589750690642_0.5952345973763848"},"_hasShrinkwrap":false},"1.2.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"e6732895da50d11dcd296da39d35671b1bd6a33b","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-7tOLSCOwK+SiWgF73EbyFOnlFz8eKAgxBBJ6b1empNUEK1YQPRcs4dUk046DdcLZHZJxi8k/8Rvzc20Y36T/GA==","shasum":"49416aa7fe13c14d8c1ddf5ea29af9f6b1bde97a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.2.tgz","fileCount":24,"unpackedSize":35246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexFEKCRA9TVsSAnZWagAAVRkP/RquWMAEWtIt1gNRVDJR\nc8/lKYfAs/eo+jeM2zYNbOIutR1NHw7zqSYYE/EHD5QAH50aEn8PEOrE/7Rb\n2uSujh0G6d+B0m6z4Z/i+oXAfi1W2xdA7Ry3Tl9r+DMy0N9/obPXiF04CagB\ntmPegslM9Lv91jS1/7lRc7VKW+M68GAKopE+YF6fy5dDgSQPsPv02YKOiA1u\nSw3tv90Jp3WRbUAwBU/2ZFSi9JZEiFZmaopDqb47YHQNe4KXQQf6w3ShM7ju\nC1sIwTREHlyS3WElGIsQki7mb29VyQ7cj72Q204Lw2McDAsmg9VScwlK8PVb\nk29ApDwiETuT82jJb0oYa1JEKgQbaAJkf53VP/89z+TFNP4+1cZ70Dl8+2ds\nQ+omABaTXRgUdCLAv4OvOTdh3XukEzINtjLYXE4NnuTZxYJGcXz4TBDo/foG\nqOg7STjEuD/tHmOVSGRCbm0tYDXPW5qvF1SrQ2+0DAzTa69Qb+/Ee9Hz3Z1M\nL3xi/WsmwXHt5eOEjLVtbxHA4ebFvOtNoX3xKoFF0v3mT9cYQDl+L14bLCzt\nBoCCmI8OPeX4Rm2k1oBUt/LAs73ZWPvN14Ro208WokKZti//GvFR6VyfngBs\nmkkwTxOmJ/ZYv1vQhDESR2LXWBT/6LrcHm0uy7/qSslM9GWeZ1zy+Hz4P9wB\nTPK1\r\n=SvMw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjFkw1zoiQdF6+SgAxT48HqsMpq2RfTdErKlPe6Qp7ggIhAOQm00VPjRWO/lOkIIP9/Dvg03ZC/30qb2NAlszSoelh"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.2_1589924105908_0.14289904401709652"},"_hasShrinkwrap":false},"1.2.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"57142970b08e6bc3faf0fc70749b3b0501ad7869","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.3","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-/SLCi14OHNIJ5ybTXjAMtF+GIm4Xc/FHZkxPA5O94SvwcnO6vdluYOesuTwzo9sIeV2cUkqmq/RHekIzorX3VQ==","shasum":"be4a890531142bed3888d6edc4008fc170357aa1","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.3.tgz","fileCount":24,"unpackedSize":35930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyRzwCRA9TVsSAnZWagAAhWYP/3kTuAsQD7TyY+1nPHlo\naTWaZCm1gbtz/klh3t1PLmE6WClpyjYyCbYMIoJoj1QzXapy/thpHPU6DDVM\nVkGTiBuko2nrEy29814BLz9gvMKj1c9gyOGVdyCwk3Z+yZz6QMK+uP7fa9mT\neCIS7RRNqWdnKg6w30R7zdgnNM1eG4M6PjykBzZt9KMlkl+SSTmA+rbL/eXD\ndzkwpKnW4fw6ucfKD93btt9BT1GctZpDpRbRmqnltX73ld5ysPbnTLec+ki9\noEM6z3nNeisPHP2VDbTYbbZdPLkfUhgCVy6zwuQOv5YBZ02GQhAZsLcXJQis\nAax2V3nnbTt5iKv7SYNUHC+hCxVIldm5ejD5wA/OcxMAPnF6OCukzeh3jv6R\nVL0woL2DcIt/noQ0vL5FL62Ea10fYfR64EJcvk3sDbEg65AdMQst5tNO4R7p\ngOOgV1XNpgpT3wR3TRXhDnJZ6Jw9JpQKLwKYQydV2sPtWYxq6hK2KSLju/8F\nDFHYFV3xPBye1Crn1Iws4V4f2GYP6mkE01ii86Cxx+vZ22lqMZmrRnRLa/aA\nw1pDB1Klow6fCQucDUAxSiK7JKlHCRG5v14ltxXb+nD4xVQHPPR9D2Hy66x7\ntMmV9fhODKIudhe/hZQjyUnNN06eCQMT7NTd2/edTbUSPo63myQDM4T95YKl\nhVb5\r\n=hduN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOPUvmPaqZGEpTWRPbvRVclJnA/KThQ8Tr5LPjbpIxdAiB4ZJPWj2dkWABmfahvhppoHJVBBctVJFu8ZOdqEATjYg=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.3_1590238447473_0.10044967862474286"},"_hasShrinkwrap":false},"1.2.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"c7f5b8f3e4d1f68bb2e1757424bb854c8d5b7d31","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.4","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-xCk6tWc4I4KuP/XVZVVD1OnSb69mtS07GqQhX997rO0xJEjzKtXar/jne0Et+HfGYWqO6hrzDLJl0+Or/hPypg==","shasum":"fc6f57c65bb7c243900d3ce77394ab0d00a21f9e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.4.tgz","fileCount":26,"unpackedSize":40862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1BOZCRA9TVsSAnZWagAAzBEP/0k/HeNqEmyFAGXljPj6\nbXNJtArnOkW8AX4++3G7eD+EQjXE7Xw7ruTUd9LUiNpgG9OQTyWCVyS6k1lH\nTWc523qJwdTKOsHFno/g0H3Kt3EJDIbAxtl1kAUp7gFELIA400otK9hI0oOp\nzlg+jx3kcD9aIFQP8onfGEmQGCSOXZhlnjciFBbXHtGgsuBt2EHA4+hU8Svd\nhLvhfnM/WP9u2XtVFqGE9WuqRgWoCEHR0DFS4vJxmxwPUVoT6kuOQXawg1ZF\nBmfpf2pkhqOWuDAurTTeZ/H6Bv5StagFgwA0eB1Ad6ow5ueymhcrG6Lewt7C\nyjVD5Lk0wSrFkqylT8nb26dc94uavM6aIhwoesZf4ATJUr0UpTjecolBTpjP\n6zXpHo5tuPcU8ePYc/I/v/UZNeQ7LNcCWDsJPfsp4hxQ1kQ6ZYmHcLqrOzP0\nW6ndGv4nytXv86yX7gtuJU4zCMNdplLqvZ8mEJnhydKdgt19iRolhFDr1Jcw\n3gSVmezWmZM7IHN/ObaJ2Qu7/6Xppk+1Wn/L2LGFni2VptgT05sWgHVRCCEV\nUdkDRWo/pMz+SkpWdm6YGMrATl3pdpN5eq1VY4rYRFq5GgSJHiTWhl0u0L53\n6NeE/5vaG/dBBtyvRfsN2IJV1JNkgPVFuLs4paSX9aglXC7zZpo0kYETmZiU\ngkym\r\n=BHRD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI7THlnch2S/ujCCmq7IO0JVp0piLFrzt15fC1LnZeaAIgGYceGV7y5O1HRS5lbq9EoNIL/iwLeksDuFss8e+ECO8="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.4_1590956952951_0.18479601403033286"},"_hasShrinkwrap":false},"1.2.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"a927d642dacb11d7d9a6c363a14c848e7638fda7","_id":"@sls-next/lambda-at-edge@1.2.0-alpha.5","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-ukw/awQxe9UF9RqGYhsM7YtXbl75Q6kIx6Z0k8PFqpSN2q9vm/qCHhRn4cdnZPtxsOvwX2WTQsxwWiHAnMMeZQ==","shasum":"5b89ba3e5c5c6ec0049d9d8d5efd273ddf92ed1d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0-alpha.5.tgz","fileCount":28,"unpackedSize":41669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2BorCRA9TVsSAnZWagAAIfoP/iov0lgJQBxjqW5ZQxTb\nX+1bIeW8kYPJFVd8gtCHahTBN2g9Gbd04E2X8k93FDj95blvFyds6Jkjr74u\nRU0Jal4MT7Ba2cNLicruBnkGcB9KyNlCSLAaQjFxUf4w5b8nvlfxYGISX4Hg\nRKnUs9i468BJ4ChILz+zIUgCQQ4CVP8/wxAEklmsA9aryDkyT7Y7mT1lESkD\nUiOEmvsQyuuG13QfS2oVqzO7Z27JPMo7Ag2gPpxRB7S+slI9tmRYK9rQ+fGH\n2zlMmhsGH+zEnfqTSvjo0w5wTV5vBLmT/RVjB2lpDmN9A80kc7CVgLXkwn7+\nMBZhqjHNv8plpILgglpd67wV0p8vBG3qGy1js4UmxR8gIlmYq+Ohq4slUYCH\nifa1In9eKMC2a/gglTS6t0bWBlWRRuIXe6eDLmODNWt6SFQA7DX3+zAI33ug\nl/ynxIgS+Yw2PzPDudNE+fMvZK5iYHQpOywceOvUdwXzn3qcFpujEcG7luCO\n5EsBasxueLRew1UZ0z3kCZGQxgDHFD20v1oe60mKzB+5Itqh1YHDTVGW2Z2y\nOL69YVryvCJ7fktYlW01PJVYMUMeLnbLsST9Io1eTbLALnyLQ3+TehvclJeu\nRQe5Y6SHfZYSUxTCPH7moKHHnUcdq4ZJ5Cv7rDSEe0iDFKHk0Dkv60/M7tX+\nXSdY\r\n=vSiK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtYNTrifhElU/jW3CsIRHFVv1R6CjrmMHHtAlkjM1U/gIgKgiDMsoklIqIBM4KR6BSNe/ilfkqI2RD9Wmn/bOLsa8="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0-alpha.5_1591220778753_0.4393590884641705"},"_hasShrinkwrap":false},"1.2.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.2.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"52ba33bd3197feb1989331813b831563a64d647c","_id":"@sls-next/lambda-at-edge@1.2.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-n54eqBt6GA+jmOue4iuqiSyfcljEE2fw0LcDUKasslSN4ZRAU2siyY0sWhUZE1o8KxTPUCjn3sDyYOMKFbtrWw==","shasum":"a3a8c75b23c260e693bff126b3e9d38f246d12b6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.2.0.tgz","fileCount":28,"unpackedSize":41891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2fCfCRA9TVsSAnZWagAAhLYP/idTsdOsKYmf8tAeqQLb\nE88gRPcXSSpyqM9QR6lSqET8x0IUmPaahQYJpEXsu7ms3Lg5EF1/0+V8XcWd\nVUH/Npw9LuIysD/H1Ch/H2p4cZ2xsfD0yxqS2yOO8A1qSJiJSwf+ng0Qpdei\nMa51diQs/pEZxKu1ri2u/AK2R+3P5ZACLoUiQYmAEWnhZI9VNCwMYSbZNHj3\nQdMDjGNH+95fqj/z7SIpQewpCAzcgiZEGzCvFI6BCIw+79r79v1YnADLoniX\nfXBF50rbIXTEBt6xWXcK0mgPwKzQycBrmfZLKFcHR46l1os4GcjYLRNmFzYL\nV2nG/nehZIrzMNZNG7ZAnNs3aKevl0K5uWzC5WkRBCPQ3ho1rJ45ZAh31d/f\nbEZOpVLjuAfCjs9hW0TndZvcjhoouKqd9PPYJw8ejLtqdam0W5A8Yd/rNSeo\nmDQ43+3zWcNpoIt/fQblmeolfRDcdMvlDa2zq6NdJM2Uxj+hPz7zdhIIK5c4\nRSi5kusJuoyHyA7UnMMhGd8V/aItcBnqd8brTTDdJLY12IK47O5nyBFaaY95\n/5mXfHGGm2CYwivx32Qv6sw9kk5fPJAb38pcwwYCtbeQd1a74AoUt0ivUMbU\nuYEl1zAY3gdHP64ltNuCy+TDq7XxSUG8Qgd0ZFXFoawoL+TkCyskBVl4e+0Z\nBlKl\r\n=WmkA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgUgDCjpt4LVyHWi0q9DWgZZ0KJOSX/C4IXdPJpv6MJAiBVK8WUTreB1mpDssw9U8rBfVTPvHk8+kRDKNIGU+0Y5w=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.2.0_1591341215097_0.4768978099897414"},"_hasShrinkwrap":false},"1.3.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.3.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"08f243ff3c35d48d2d912944ba458cb6d36a3b36","_id":"@sls-next/lambda-at-edge@1.3.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-//TzYZJ6YCA10N3LdAzYEdOK0L0nDaOBzQm5rzX9EJOMB67+lm4tTqtEc5uOIDf6l7Pr0c2cMCixyMD+fHUr6A==","shasum":"aa35975d73e4660e05d66135ff70857cc5f8d655","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.3.0.tgz","fileCount":28,"unpackedSize":43026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3KqPCRA9TVsSAnZWagAAOQkP/RlW1hsN1ZG/uWqtL+3V\nuC61x39ZdVavxFE6itEo1m+ic0i8GV55lxegMGsaGj9jDvQXmF5LIP1h+/0W\nM04Ou0KioYf7ERJkHEbh/ivIhUgvjhL9DnNdFp19L52E52Mi6PF9inKDYZbh\ni/FW1O77lP8PC3I23pH75Ozg9D8KYNRAQboQKuW7ri2JPUy9B1iD+vk+IMz2\nq/I7kYKFcIJFZMtqR+8uYPtN7GsnIbb/3pgmME65owjoZfZINptHf1mRyQwh\neIUnPtFDb9XBUEuqGx6xPlpd2vq1C2F5Q6m39/bFRoVYoKZzjCUBYQrKkB/B\nmmx2lLCWsCiOKp8duY8ethYg5UVDszPtl0m8XFKDsKNzewcmWZZx6vjozpx/\nmezW7Lx33miJzWM1IdUifVPXmkoeR3e218OzbodOeZRYEvO3yJUHzsZ1lcgG\n0tJbJXhdcl1P0/Xrd7oNcR+Nh0zz32BeysT67FvXMmv4eGEV0cYo8BsmIigu\ni3JrqCdHcIKIbV3mumfxr5qtu1G8ne5nlikk/eokhvDatRzQS7logqrYfqs2\n2UHY4JVZvbEiOdmcp4M47TprQ95Sg1QHeOKFqSMu+2raI93rE/urtjqgo71M\n5aDhSlgJrSQT/5Dc6oNKeLt8Fb4zOp4wILI8YEwQvQGEMgsFAczBJP36w8eB\neF9f\r\n=Muz0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjdUeN2R/hu0SXWeBb9qTj3WzPjxOe4OKns0AdL6zztAiBDSLjyHA6NaEcnAL7VyNp91j2Ia8gi0wIrT4hCKyZ3OQ=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.3.0_1591519887305_0.20134028925326297"},"_hasShrinkwrap":false},"1.4.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"b4819e0997d2fd78e8c5c033c2441a0fe7bb6410","_id":"@sls-next/lambda-at-edge@1.4.0-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-jrq8jcEsDkI/3RlK8Pqbt+onOlH40P9SQBu+7ecq7KoLeEr7wqlsl7lFzYrq07WNpwg/OHlXsr6mYd6DtsfEsA==","shasum":"edf55ffa663e37472226852545a1e0edf02832ab","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.0-alpha.0.tgz","fileCount":28,"unpackedSize":43513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4/grCRA9TVsSAnZWagAAe6UQAJYRboa9IXWgW7+6nFtb\nHL8xCGYFYpoFEJzig4mO71WfR087WFqh7dgj9OxK4qfJDQ+tac5GOvUw8wyJ\nPeK4sCIKlCvwHmLu9kMbkI9MWCMIeudoeioQiAJEfkJG8aXIDX5v681UTd/F\nBXu5kUVanvkLpllCZfir/TnEJ1mA51ANwFy+qNLkEyJt17VLAwUqPHzTBnYN\nomOz64MlLJFarBmOcs0eUjPlDu8FLIvmKoryaJEtlYOi/Rj+Yu/KwsxG9QKZ\nRwpEdHwuiq4vsAf/+4/hv4PlEkMgDc55MhjLPoCD6ET14pg1SC7Ng7tq4hQJ\nuPCVLw5IkIQJdJS/ogZVbtFaMdcdlvHD2eZ82rd5Fd/4SHpN40uEfr8Fuzh0\nIUFJd8iAfkrsAaRVk0TS+Ocqgk2QPvR7/QkJ7LlR39bFwN12TzH3K6FxW7tG\nCtK6Ou+hZFC8L4ZDw86p/w7xsiCzSGmTGTwvf8MinrB3q5eupEmbQB3cGaPV\nUhilh5zqcuM+beglEjbOJrx2rVrVWIABo6rx1OHmgjbKC0owoWLfj25W+kp8\nh9qKVS4v7nE7L4SSb8zxt/EwAdM+g8FQwiSFKIZqTPieuFFkD+DbAZV1TklO\n3QRTI1ThCWlrdPYpquRAyIIgLWAsU+7Qd+zdWe0h60VluQDKYgVq+BRp4MBJ\n1Kbh\r\n=SZxQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqxoa6xm+cLr0328FD5GWGdtWD+FNVm1R165aojDQFxAIgL0q7MRDsQ/jMomW0sf3YXpjNOjQd4CQ/afQxCPU1DNM="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.0-alpha.0_1591998507228_0.34002073779769515"},"_hasShrinkwrap":false},"1.4.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"483841a88b25b2c4efe67e009405e5e4ee4c3a64","_id":"@sls-next/lambda-at-edge@1.4.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-TeNDwCsiaAvdIGB7e1gG7a91iopVQxeFvEhvXJrx/X3TmnipImPBU33GQ/8CuSDqfWMe84vKtoEfHvxpFKHEvA==","shasum":"46526df15f7ee332abc3d2a321b95c38b64039c2","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.0.tgz","fileCount":28,"unpackedSize":43731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6SdpCRA9TVsSAnZWagAA5coP/AjwCQLnHtfkADTypcDB\ne8acpDYO/vGPLtv+7L2OPvSS+tG8C3LniA2SMLD5KytoW24HcfB+AgOiHizh\nlfIOd40LoJ4ol+uBcykvWV/+zr33yyOaGVugeuDCSVuQfdyqH3LsLpTpV6UP\nUZ9vOMUabANpb8W3rZ54lsrX74JO6b5R6PaBDA1gyjX4aQ60I8QRuIDbQCBM\nAE8U8EMqKNIQMFqd1VJNkCeIL+hYsjkYeizPgZ6Et1Q0PIdhfR4TZynFcQAR\nIIKl3kaGrBOlS9cXn1AuxEj/w/HKuQdyC9QqRvs86+pCsGScw8ZfEZQMpMhe\nPYL56Yjy+L8KpzVgJQ081tRwzcwXbZxmp9TM5pV0r2zd6RWx48flmujBulPB\nAujhCQrp5Nm1RVAyzPm36+OB1ZtFz8j3vZfa9VbHYo8jH2N/kUJ2usteox+K\nLNIS8y6f7r5Ptmp2IF+VzRsnZEW0GSz8kJwMQtNJ9oc+r1E6IItIRSr5fIfz\ng3mtBw8lpcvz0mb3MYMLdnkglRY77DAAPku50yksIgWFu1TB72lF+GhmKGAk\nkBf2HdiiiRZMJT5QTZgiKNCLLiN9eXfO9+8q3BnuWFYUKzIeUti7UiP+GPE+\nYWejo9aMBhz9IQ50LP1MPBds/EbXLzyaBHXog2OevIp5DMs+gXIDYA4wu5Ms\nAF1I\r\n=vde3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyLDNoVUohkpLQIwce5qoXnHyLznB9JDlvGXgcC8DIwAiB7NJI6tgCA8UGxfkdLS8Kfo5lotl09wax5pJ91PDLXjw=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.0_1592338280484_0.22173136512539937"},"_hasShrinkwrap":false},"1.4.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.50","@types/execa":"^2.0.0","@types/fs-extra":"^8.1.0","@types/node":"^13.13.0","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.0","typescript":"^3.8.3"},"dependencies":{"@zeit/node-file-trace":"^0.5.1","execa":"^4.0.0","fs-extra":"^9.0.0","path-to-regexp":"^6.1.0"},"gitHead":"e37c725ffbab01cb29471f7bd1cfcfd08dbdc759","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-LVsr6AYR5dCLfEhZqhlp1d9Zg6AGH5Cf+QBozB06hme9eeBd4OyfXQTURCvzRYyKO4gYTGG1Fja0xlWpuY4vMQ==","shasum":"a67f0817c721a3a7fcd74661ec31f14ee25b85c5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.0.tgz","fileCount":28,"unpackedSize":43872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe76KjCRA9TVsSAnZWagAAnAIP/jRrV13Fk3ouAo3C5Vhf\nFozGWV2M9rPvy1DmMzWEcj1J5qt+9GkxgTwLmhuzOzDcfDPuj+oivRukNldz\nY30fBYwNvMG5JPoMV+a+kJPD2l2SsQU9KlG+5cWzM6KKiYeSIBPuv72nSJSu\nxEKp/0X/WGWQCawdHLDiBsXvzC6O2SqKVZOkGmNrCIZ+OVbYAPW6fAirFBei\nwYZvn3hH/IuTCoqzwVroFqR2ekE2j3OFJG1q8S454aIjOepmsH+uo7OyfGkj\nrbHBy1EN//mtOti7VW2w1OPimK+uIu+iyEJW83Nxs5sH48vAuzC7uAQ++k0Y\nZPA0UN+9FOLn7K5BMx8bAmcbyl14LcQVMaZ+46gMMbpkthvt68k2SS2FmNkV\n+gjWWoz/ZEI+iNQeGCXr+8lN4IG5IXYg0Z1nUBy8KluiXpKyIoyvmRySS5qw\nDSgH/O0IZISHb3P+azXd9z/VCtB3tm6081D29aBNTecbWr0ReJnIWphxlxOO\nxMdSOIwN0TFGB1rxc+3so1XkzUlQmG+7yq9bFEIZHrPtTGas+RBAn8MFAtCe\ngz0d8PX8ft/qagPTsrnOgyFCEdR4tQf66DZ7/vEFCUDvndqCNdcH/1gok88S\nMZsJCvYZhGyH0b7a2s+yKWajd2vTUUlqqBVa5d/kb3CLTl0kdxmwRYhZ3UCF\nQdTe\r\n=3aSL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTre8CFsXWwCsfv6EgkyIKIQmSxRPIa2VM1ig9ZdyF0AiEAjw3Y3mAZziqn+S3vYpES0y4RHHuLOQupVUm4JKqd3S0="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.0_1592763043167_0.649583361846007"},"_hasShrinkwrap":false},"1.4.1-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.56","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.13","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.5"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"ad81638944ec7b43d24b7121336bb7c8311073f0","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.20.2/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-OUQluwdqI8mBCHlBfVsdnFkmFZ+GLOTOeZGVgbqq4jgYw+C1eNXnL1U7Dzt7I2C4kh9KWdeJjzdUcQkCLI3IeA==","shasum":"30117abf9907a431f386e42391378af0fb38ae6b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.1.tgz","fileCount":28,"unpackedSize":44302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe87JLCRA9TVsSAnZWagAACpgP/30xotIOffFCXk7CNgHo\ndz1LjjejoiEtDN1/E1qgoxpz1GmsSxgK+KgJcXjErgMEUgtNqz/W//nv9zkp\nYm3DsAqTMauCovzdtuo5GPQmOiIkZvZ1wQZqtPSyF459dJ7Lu0i355L+nkHt\nXrQRGvMW5ymq1ZnMOvLlxaZu/sU6JdF57WIQja0msQw/WtHretq45LnWyKfF\nyWtMGcUXDF9v8C58JLWxxNRQDPvOWKw8QPG9iA9A45xT0Iim9mB3XrvwIc5T\nHOn5WY4OwUZ25lhF9v7rCCiwS+BfMovRLy+5pk07/4pl7sIYeW6/wUYLkUVI\nMsKa0GK8J8yjjLeFNcoO2o5Xcv7heqo5FNU+hA40qe8KuQ499hay12K5CVmM\neH4iSLqgMVoPid8S5Cje/z4rK75peVqCqYoF85aJCQQT7nj3AC4dwZip7o3O\nqc/G5rNmda/LY8h274tuh7ccWd+aZxJhiGAa81EG/iMJ4gQ08OOEWGYVpDfh\nLgEMOsn1eENajyCBowNpm11OOmGRc/+6yBVYhoVzbfGmrlreoC4ZB1PHkPg2\nVER5R4Z3FM+Q2NMGqUyX/HvHFv3UkiH1Km/8sQl8FRinMb7shbR6++A2y6An\nKZXmRFL9I3fBa+oRlvrgjYtTiMgLtP2d8ndw79zah3LP7/DHQZWY0YPZKyOI\n+W/C\r\n=BgL3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+1nii4n+ONMTXBLDbMYwbI5RQLqSbNlbj32xafnCTyAiEAii7SuRQN15z8UwxICzsLVpPfgEsSsFvesxxzmixX5Ww="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.1_1593029195087_0.49857253772169385"},"_hasShrinkwrap":false},"1.4.1-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.56","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.13","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.5"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"76373d889206f6e2c046f9416f555d3e15e1ae39","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-5t+/dKyX6RADlsPOPMyx6t0KMyG7a1fV0tqiTVriFE500Wlw2IrNvWJSmV9YPMGchPDmOcaFCuQmEMGIIq+ikA==","shasum":"55fe95d536083474ef7baafe8182a6151d944cfe","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.2.tgz","fileCount":28,"unpackedSize":44964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+MBaCRA9TVsSAnZWagAAgRIP/jiBiVyZJiYicf/71LwO\nWQKmQuHoJ5pNfK8jh9LLI3GOXEE4R81KeR8bpT2WoubIGP7tElrd8SauyAL0\nLe/mcxzshPBBIr1FmDwdZXb5ak2qcoXrCT1i0Na2izZ4hTlLYw4FrNPKGbmR\n20WAWm35iBUGNR5tm1KFMz7PbVRl0DAKAJjwLvMaiqbTbJSmXkWOZuMae7yD\n6RFzvwosqc9ZgJfYpmywdmGDibHwE+DeHiAPoSbDFV7SB4ZmukzEuCVe8ohx\naBWPV1OjYhsEATSivrAvMFGqwbzfubP+LX1YwsMW+8sYPNL3RdCUe5mkdg3d\nZmE+v/MBIXZfXV1cO3F9wj4Cdm8u9Wz5I/UZeDiiKJLfdkLWoxde4NCUTzxP\nW7TzRG9AicCEouu/edBLEGkb48nSFioGXuePzAODcO2WlAkucyCYidbZfW95\nLYQPZrs0dXX7X92U+s0P5Wq3d3YZ9ZsuXklGxC4TtM79dkzAZiORtk6/a7XB\nlvw82PiVpX+mhArFYQUZMW3u+RQKSxZSuRg8DGY18wcUKFsE7BJ3gVhmLxB7\nAXlFvl7bnLbSIqxyxcVk8pBDm1JBqBKAD9IclDu3C7j3de865IY83BbPjtua\ny99zlt4duHcDbJVXkGuJrAt2nW8qCU5zs3kSaxix5nEhmuc193R3NC/S58h7\ntrnR\r\n=eQV+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhNeMGAAUPYtNnelwjnI3vkV1criJzbbWaEMENmz5jsAiBt1/93PMoPeyeYSt6oJ7wUkOn8BA1KQA47h+OgUbSLoQ=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.2_1593360473810_0.3359771610504194"},"_hasShrinkwrap":false},"1.4.1-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.56","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.13","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.5"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"3f3ba8c07586ac27b117781b9e04d8b7aa53445b","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.3","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-z5Ts5Tbp5x0hbvnTstU1XG/HqCWg0ODkH/p0oVvgfZEnRZhPrHGgBgENApOHG9l8/0tzlak9umWm43I7V2oCrw==","shasum":"54b08c22f8d60b73a26aa363b37888dad804a743","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.3.tgz","fileCount":28,"unpackedSize":45204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+l7HCRA9TVsSAnZWagAAqbwQAIuuyUfgQNKjBZJYmegH\nuG9GJIjIxYlGLKMtcsI9h08v6pawtSRQTbqDdBDo/c/GWhwU43OloOHl7j13\nF4cS/qpZm4G0cuGrzX0ElaEnXypg1vkhSVKXzgZXvpmKdvfTZtjZIJKXHe6X\n7Ay+mZh4RQj4r3ngOj0vImOLR/SfjtJGv16Oq58cVgBxSdoP1qKhc2MwFFf4\nUopxrnBkgR6zma48AgfyTyMZxM4odXzchdqToyKRBXfZ3/siFGdaeNQ46nm8\n+R59PBM0e0gxwzh+mRQcK0ZFSszg/cnvPFsfysbrGSErKeg4JS3nVwjHDIQC\njUSKfCnoxGZ9VTV65qna+H634NPWJdJ7orLGqG3XZrotuks3TS/UbvZbjESJ\n948pGPKkx+4N7+ai5f1Aqxy6rdjrOEeJ1CZ/tIQWQclqcmZ0DawTzhj5EmcH\nhp5DI7db+XtWCxlzAnzWnns7NQ8F6Vm8RqCDn8dezncTnstVqUxA/yWAASG1\nOw+etNoNeKt62g3ixSDKWbXVAbFMbcMsgIF2ytW94MkdmDAQDl9ZmY6ygElB\nWuBPqJc1FjlnHFGHWMpYxyUHREgELAPDtOk0q2RgtZSdw0Fe07zjbM3N4/U5\n84CK3DbZQTu+pa+BTXs1bqOuaBi+rr9ZWZH4xkyTt1gsQH6DLpvtsH3e/FVm\nPJCi\r\n=XBes\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm7iComoUh0ELQ40qfGBche+A3ZewIHpulIrbR+KGJygIgSv06hRmLJ9esVIkZ13qkw+rxdToJ17tMNoOOmec3sd0="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.3_1593466567123_0.3096283541449003"},"_hasShrinkwrap":false},"1.4.1-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.56","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.13","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.5"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"0efdc77eafbc9a77b4735cf84fb4a6c063869210","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.4","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-t8CvfsqFQyg5XY83XYDstGM4f5d/FdELq6QB2v4ZuOVR6hbssj5GnkKRu0AglEZh3MLYtgoI8rao72DQkgjP1w==","shasum":"4aca5dfa3922298393db1cadf3a191253cb264f3","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.4.tgz","fileCount":28,"unpackedSize":45447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+mKWCRA9TVsSAnZWagAAHL0P/RRiuYyu1NzCiSz4GWDq\naGslziuLSGEJt1FPcqzEZnBjm0NjQxn9ZAtHcdfzBhi6b1DFCdooyMzpySEB\nXSQQvqu/RfAE3FZX4khGBH6vrZ+eUObBe35RmEPnNR5DbqxQOtt5B5sRQH1I\nlJ/BtKNKOsSrOzvWAAl+c+IZMsePGhuoFvyWET4FZ6Qj2qrURB3oMnpgmQWi\npZTfNiZeWKsjOEzqKgz4uB1KLmNQ5dDmbsi9ZadD2TB9o3+uUtph1mRMOrtc\nW8l+DX0Wsfm1ghKZ8Qc5XGq3sID7F4Y79kn2V/AWUFPz65JezH4vKRHzT8yZ\njjvsRRvcBNJt5yycogVsDW7jCagvPgtI2EKX7r0JAXiqm8JUySx2S4gAh5sy\nWHi6ExuZh+7ia3DxIYni7aTCVPmyQUyyONtEm0Xdogm8gilDV73ZRJdt6bLw\nylCc5AiLwCYlos/CHUwkIyk2EjoaTYDhGjx2Xy2bB6CcthGg6BPihbO/oJAo\ntHUjClzQeXDmGqX416G2EGk8PoAdIelLZiDmn/+gGwm96DkrCJ2Dgdgqhc8n\nnxu4TFuAZ4U+wp4zLhG7Lmk8KlgOYEKv4HMwYsP0+z8GZeuccWSIhC5RDzDa\neUO/DPSyKES609JzDr1ZQUQSXMmSQ8dymBX69mjc/dRlnW2chE0+ZqfD3V1d\nE7nX\r\n=DEt3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXw4b7ghA0FV3EN2n2FN/PmPvugibRnoVBHnTVn6cN8AiEArwWNIgLvEgld/7zKTPpV6bpExBiHerP1hLUgX2nuwIU="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.4_1593467541918_0.41876234470560925"},"_hasShrinkwrap":false},"1.4.1-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.4.1-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.56","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.13","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.5"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"fa92c2c2be4891ad02f49eec0a241583f1e6969d","_id":"@sls-next/lambda-at-edge@1.4.1-alpha.5","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-qYRGO8owGi8hEFVRX/j7lqTchwAewN668jCZzVdCPoAQzOUcAcNsOiER1rZoim2RvgstFkVyCqSyYzMsTs+GCw==","shasum":"e29ea4d053156f252a5382583640733881f1d9a5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.4.1-alpha.5.tgz","fileCount":28,"unpackedSize":45750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+470CRA9TVsSAnZWagAAn60P/j/M6CcptJfGpEHWJy/L\n5LX7UFHylIfNkUuA0MvJImh7BHnWLbx6g7l1pQcxnVXa1eVIcjuBCSCttciq\n4soy0XWQdWy6BzUl0QjrtFhPuEb5t85xVrW/gw2nG1l7jDcY1xlE7rfe9mRu\nnzQib7O79S66RMHbaRmxlnnETwD3/xwl2tfhvEfDpWsX/NI8scQ3lq6fYrp1\n5t1aJnm0VVTVF7J0+qkWE1clJjRrVa68Aiv6kRawsFqq5kx5Ot3Ru1Gm+ON+\nP/NrHQZvioDnNu/JCrRzn2Ll4bLAf0To7ondFM4k+SghmTiG36eKHijU01Iv\nQp12Mju9vMTr3nIfYjGYWAv6v7AHIGA6Ifja0Maqgg1fD9JrsiBjU2fEMjs3\nxUcKjpnSTsoLcsEKNbzOcKF2QgaLA0tJqJzytRs0mF6QiQvjAp549yNp/nYu\n92R2ygvYkGfIfO6FuXyMdNnMKaCv0VBDmWr7mfE4bjE0ez+snfCPCcrRFa7L\nT0yHRJYI14gXcIsnQiVpt1w76CQbEt9hls7BZOaNXSpRjY4i862LxVe/GgqQ\nCLgO86zu91rtAKsHg4OqJxjtp4BP9/kdI5f7ebsIufvpJ/SWYVHd1rQmf4/f\nzP+s47LkhJo8n8WWRklcMivKfUwNFBr5VOJONcnFT30+pkhTGf62vn2zFN4n\nMRsP\r\n=EnX+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz04y4SiBTD0rSz93UPlE0tXmkFodoLI1OQV/FzVHcWQIhAO0sLxqKVqADezgUaGXBvGsfARbgO7hLgmRr/NHK3Xpw"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.4.1-alpha.5_1593544436300_0.6899479885525079"},"_hasShrinkwrap":false},"1.5.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"930f0830c8ad6848bfc1c9bb416e88495b5cfb71","_id":"@sls-next/lambda-at-edge@1.5.0-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-bxsXsNpfVb7EEoYzaC52GDcEBQCfZhPHv+6LcISYkq+kRQmwqp2E3ige5rcuQz69EFIGKxAwy0Y1ANqAXNmIFQ==","shasum":"20f260ac0d7ca6ad4fc1c0d00b19e7f2e3ce954c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.0-alpha.0.tgz","fileCount":28,"unpackedSize":46717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAjB1CRA9TVsSAnZWagAAPwUQAI+HISj4rpyhkC3InsU8\n7HPTt9dDnn0DnwYmGCo+1S3kcKpxJcP73lh74icmVphz4b4bqroNFPTRCX8z\ndA9p47DRGn+0levj5q63lULQhb7A4B6oVem3F3hnoJ7yZehTBZu69eZZoKpe\nkN9WUuLZhiyMtf58PsRtbL7irq6BsBhX9L7cCSdgcFvuKlPvLMmLexmj2P6y\nv7gyIDPxuVaz8Z6nQV2FOeVkGLlaCAGT+qQnVj8PJ+s+RF7MNWYnEh5ZGfFx\nv3KrPyVFdtGKrqs1RIyqiE3t5bLIM9yPUoJpxgtBNQnZqFGIxEo1m8l3Lj56\nv3bssFo9Vx7sSqCpUAXC/wGL5LOSD515M2jLpPiSTzody97kZ1eDhvZudKbe\nsVOOifEn+Ow7O4IpDK34A3SMT3oisld17dNJrLckaxXA39hoqsd13RL0ad75\n0ad9IJPQHDHk+b5I1FoWRKZbawN3f2GlrwUHVJX3cVeHGsl8FwSau0EK3y02\ntxDEDzTNp2LICZM8N53i1w6011CdEUtCKyRAsZqFbdIKiQIcDH1dQlzFbKrh\nUrtnVZwtnyjMnqBZf6OP+YKDhoHfSGG2mLdh+JWOd/eOtU0wxKjxqr0QUJ/Y\n28fdIxxWwH8q4BLR85dvJH7DXwmcBYm23nt3cQaHNk9PHhqTJS2aH7BA0ifB\nHTvG\r\n=ld5L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBZlDoYPDK9tjovOYVxNNktqikxqR6n2BLPegETJEAMgIhAKFQcVP625p2kPqwqgoAO+oJaKYW2q0jxpxqvj6n8kP3"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.0-alpha.0_1593978996673_0.08578197274912913"},"_hasShrinkwrap":false},"1.5.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"1530ac3ddaea34bca017f2347797ce780395ef6a","_id":"@sls-next/lambda-at-edge@1.5.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-1vvoffmQWD3l3lweIJPA+fiVlvH1RFcIA5q2H/mg3Q3W9nlxnNm6KuEzINkjb/L0qms4ZfHvVDu3O/v2Sq/sdw==","shasum":"086846785102a8272394271fb0e37bebbf7da1ac","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.0.tgz","fileCount":28,"unpackedSize":46935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCXzjCRA9TVsSAnZWagAAj2IQAI+qW0uwK6Cxn+ulZ911\nPIlllkwjt1aoc6dEPyHybEFcM30R61b1Imef5b3joSpx26qRPs1spUMOb1gW\nOs/1FS3cW7jNRyYxjWEsIFuMjzaT8e8hbWHZ0jre9E/44i9QafEMzGGmAfRB\nZmmj5ZwliCe977AhP1i+SiTerVVAQD5Zd6ryswQDCW3UdBx3IytsY4NITITF\nOb9fbcePqInV5Rm4LNccjae/x/h3pPPY4pLapauGlg6U73d4iAtTP8JesIOK\nf/EUJb7sWIvquynIWewJbQKQvaDuyFtTt9pWeik0FnFXd9hOIth/OabIMjZU\nbJuUbvo2CPzEu95u3zJwKRaYv6ajvoTiPzEQobuY7cIyDZc8sotRDZPSdGZU\nAMQ8/w1pzoClG2lP0N1gOi/vPDi9AYG7K887RnvRd5dHXt294YlBAnWK8wox\nhidzXbB+0XLp1JkH/B16s3fmXMYdklRNn+TTZUNGIr5sWFxPnE1Zz7r4iUcK\nSiOqvP+iF259fqgiDRYExq5zWVN3VMSue98QO1i4ZkqxBx2I8w//99v9c+YQ\n/eBh7Y9fIETFMOtJwjVkY1qyHk+9XGdcu3qXx5Q3FlYF/tpsXkvaul3iBVjB\nc7DZWeL+pG+yQ/ErH34FI7EDTn6AfirWwW4cmh2sJLUz/3UNl4Ca/VON1cJH\nVYVa\r\n=rWrm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtz5IoUa+Xd97mkMJXm6Oa0LwbdFA+pUCvAkC9bMQsTwIhAM8zrIOpFH/vtOFdRj5S/6DL7ftjdrIBNFO86C4swM0V"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.0_1594457315163_0.5973703670505992"},"_hasShrinkwrap":false},"1.5.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"343b3367cd07567da15267acab29e72ea83afc8d","_id":"@sls-next/lambda-at-edge@1.5.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-xH9TL6bbE/e8XZelfXTCPjdZEXv/3utxXy9ZpOdWtsaeX76RILIZ8cNXSK3ASTipfMAxSohru82bmBmnb/KwVQ==","shasum":"6a9125d07f11350e8bbc106476ba93da859f06a0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.1.tgz","fileCount":28,"unpackedSize":47367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCZLOCRA9TVsSAnZWagAA1qUQAJKKxyQXTvQk1PD1ccoI\nPV3JewVMb7BhQtXA4XphTLRuNLuCzp2OSfUT2wMzEAH/2EC4VQNaJsTYZr9C\n3XORNMNAtAHthvQOldOTqUGj+y4wSF9V1inEQIdbqNcYODe2R1LCdrkok2kH\nE80Vx0+HdroNSctEycYLjhRMkjpUoz6LsIgJXf1F/MwQGzDcyyUI6Qn9iF6d\ndsOTr2n7/H3K+jrDexvxwhgOZ4e5dfd5ZmcWv7wVMe2VNj/BBofxGPiD27ra\ngJRvqvGVsSYj9maPe1dMtxg1gYp4ol5YhFTVmrGOvPmCV6nGko+JMaTBuVMi\nzvgSfFHkD0ws3OKQBmIYcvTymwQKcMRJAPacMQhoMTOViZcqAe76qnWQTQeD\nnO8+LhUPLt/n5inbsXG0LCKTfLzuwg1HUANhV7RQ+5zD8sPqmcJc3YJOpmnP\nIIyqhIwftNFaunzqn93zXAbUq7MZjSxHcPeKcj6OVi2FE7CqLXsruw0lbRha\nsNeInrpQJSqFj3p7ve89MHWI7+b047OaOOkg5SWC8PULox4Nfa9HZcFbl+sk\nVfssXd/AWmjxpr2kuOUvTyoYa6e2EQBpX6mW4qI/Zx4jvlOaWmupOizedEIw\n6kDb0J9T3d+Ju/35ys/zFEl77U5h6DcDHF+CFLtsszeVioiuxekbXodDoLQ/\nKQ3c\r\n=wPMl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE+ywhqcn3dxtfOkFd+vxXmSSkRphwYKHbu8UAvT78OgIgF0h9WMIKPWjxQhpeRJS1jvUJUdsq1r/r/Z9kmPb7FQs="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.1_1594462925846_0.2578326877777821"},"_hasShrinkwrap":false},"1.5.2-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.2-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"0222baade277b1607c9ffd80f322b2a105975833","_id":"@sls-next/lambda-at-edge@1.5.2-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-xwS1QRQahlLR9PPLTcHwaN2Ko3L1vOorYHyoMtFY7ndTtrI+iDk8RYlifpl31rrl6nPFwGlYIjz34/WTPEcNNA==","shasum":"9099cf5e0da78c9311108cedb5ceb55495e378b0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.2-alpha.0.tgz","fileCount":28,"unpackedSize":47610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDiM3CRA9TVsSAnZWagAAPPsP/ROsnvXpmVNpzbDbmW6r\nKQ/0qzC6fpNnZ7/cUAQMpPycbtOxsBty1J3vMu7oXvUh7xKcZ5Vekp1Fz3Px\n/Ex49IhpzEt+eSTEZvGYu3rAxjJ8C1On76yT+SsfLJgXlv08ttq183OomiwU\nOSm55DHvh8Um5XKtIvqBwPpboGLnHXW4oh8Uls2sZdGDxNR4OHKfkYEGEdBV\nDh59nwfOCmVgy3TuMgixv7qkREi2tX40f+EvymT9R5m4Zr8NFbrflnFcfuUX\nBOoOPSH//tj/BOXiGKESb5HtRDlIImEecWoZNkMpe0IWMkmwQgXvjCrMB6pa\nGyOdw5AgxZD8lwckODEafJskCxfKW93Oq1bRd+sdYcQeRlclAUpUB6nx5xv6\nwYedhvENT5U98B5o+PMnMC5doks3fXRteMbp5QsuCYIy/wS0YN5rynp1a1jV\nOLKppFCcTlqAd00er9dEhkIMJDfTPXz2jpvwQOphKFNL/fUzJ71K0nNfNzRq\n8pXZzP+197cmJBjtiLYP+dnQ2HIfjORP9cnub18aO0J/tw8JX59tb1iqcV7a\nFKqCdfiQtZbwAN8si1m80GeQppSblAR6sK5UIygr1GTaTv7Tz//1ccGgsrCo\n1tadZGcsl7pE8ixTgqGmUphQcc0k/9MEX2zkqcSf4vvdQef5w4NbNjemfNg/\n2zMQ\r\n=6Al5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHY29xpwlVFNF65Zog3X+eKuhZf/JVd9/DPK3t2mEh8EAiEAqVU7LRAuOcTVp7ZDwtyTKSibVizwFK8D4hoAZVkzx3U="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.2-alpha.0_1594762038692_0.5678418175408242"},"_hasShrinkwrap":false},"1.5.2-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.2-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"4b8ca267f18f681bed705e97424b88585f6e974e","_id":"@sls-next/lambda-at-edge@1.5.2-alpha.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-vYTMk8pSgFCgbV4cDed38UoWQIEXV7Lo8rxtcQZXYd5GLsgq7rQJJli6Xek7RaT5QLgfnxCCqNHC45zdoQC2AA==","shasum":"91c4e8e515a8efb0764b2b7af41c3186b2d17947","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.2-alpha.1.tgz","fileCount":28,"unpackedSize":47853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIz71CRA9TVsSAnZWagAADeAP/0COapjkLw029OmO1pbB\nEskh/6dOXUUjIWQvfvHYzAKKSMbPaSu00CgxBDiQ9gAlSC5KBjeJ6C2qZkQ6\nfQkaKNsUz9KSAf+nRMSJn9ysQKSPkM8Bp5Q7OnqWJRnmmrHUKH3DoxVlkqEb\n7xhgrECEpX//KCQ97R7NPUcYM/5cF0ZVDfu8OxrQOEx0ZZtHvlwjTksqfWPY\noP5FOAFmq0yehwK4VwLaF9q8hv0UfudxlRsqsVG8ogeFjmYd5LSTvNrLLVBr\nLHh1ieG8kGxY+lBimMhGhSpX0mSwNM07gsY622G5dG8sCzVPDlNAKKT6QdhD\nk0Xb1uD1VpSFbuhXoeHuaD3Hh1NFHpMuc0i6SMgBwgZZdyMhe8JseTUZbZ0z\nZ8PNn4wA3PoFIjp8HETUIsKsCL4KBxEmnsxLIlQtxcDN2ZAemfZJKJ79GbYA\naVPqU9oOcgLBDF2dNwNx6a5PelKEwe56yk1g8H/z35TW06EAnjHStx+MQEmN\nDrnfdKj5jOoy2k9AB4kCaIMZl7+t3UEMVEuCRz1Aqdk5hRDidcF7gReiaamV\ntfQ1OEmx9duZ65lJMemYQPl5j+z6uftfWVBFhkBub4Nj0jiVmjfnrlQKM44l\nFPR+naMPTMOpj8ZuBdCRj/v+wDVQJrbvDKOawk1j2jImymRVYnEm+Ps2F7i6\nM0Yq\r\n=JzCJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0Mo1LBAw3NYpE+rlzcgilRfp4H+mzHW2OhxsIMkTjaAiEArF7Mk2UOrX9xtIzok2mxIQwUn1J0aQlQgTOIi6TYuCc="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.2-alpha.1_1596145397592_0.0072112249409963525"},"_hasShrinkwrap":false},"1.5.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.5.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"70cb5ddb149e7820d0a7247fd834a9aabe1ad0d4","_id":"@sls-next/lambda-at-edge@1.5.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-ZPaooGQgyDgJo5ja1V63bSFEvB8BWEDp/AWhNTfZo00wFB4eFmDwcUmWHrj0sGcyuGSjZeDJVKYK4ampHC0Ugg==","shasum":"038386f8226c041cf0f15f2c2dcd27026e8c3cfb","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.5.2.tgz","fileCount":28,"unpackedSize":48244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJZSvCRA9TVsSAnZWagAAq+4QAJRuinutdMIeIo8+UOgk\nqbaO9XRzuvEudCfCGFRu0WWwo2LqAea3g0nQR2pGawHXnhuK0RDKgiwKgUKd\ncsqUpwoNMOo4jcRQkR8hw0T+eLqUyLW6m/ftPd4EziJ9ndSsABJLsSAByUaB\nxMGWqm3Ba2X/+3OQd0dr9LKZj+8OBsMF1RrLFrsbMphJY9COrkYLADOwZdOI\nTksBKqbCQeqh+uusiAmyb1KsJaCg0aAPre4I9ZNAwpLquUlWul7iWCtDnJVZ\nmOn5w4sffz0Q/RYZMssXVnI5ste9g8so27SirOflPaPif8S6ec4mcmM8invY\n2X0GpUP1+UIhp7ac/PLXsRPIByrQ+ehSctAm6RSDdYtMti8pEHK0AEm1UPk2\naSi1lgCYR/ji7oyGG0M7CELN7/jHCnCaKMLK6IYaVi6BTZc0JqhRP3OyZdGX\nPHF2WcQFmuyZGTXDKPcKYQw5CrVUB6C5KjKBzTWsNht9GmCjqXRU8leFb2H7\n0Ze8hvOJhtJPApOcldc8fOxLTRNiZHECcAvU1YMe55sOfa/O6ujRLYwE+18f\nax9RnlY87zWypwnGyS9dNONz01HwYTeWZfi7CHl+KUuC/RYPPQUIi27IOd6z\noZqWtuXkCJIzxZ9P5iT20rH7HpjhvaTK0T6yw5XS4Jfhq7qFdN/1nZuXW1xa\ndNdY\r\n=Uz3H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChLe1GyO4p1Tyx3yRETAyz9aumXS/fkttlfeTxDgjSwAIhAPqoys0mnoR+Qexdc+UIhQi+4WLbxor/Yy3NJ/I3XSYi"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.5.2_1596298415150_0.12003798206318383"},"_hasShrinkwrap":false},"1.6.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"4480e287285f9fb4caecba023e8d581f74739d58","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-v5WtRuBX4PRrn5W83AuhTcbW/ywdjvLxHcjYzlqIlyB3EgQZb4b1G0CBPOml9nW74WEv24g/yCcss/9QWofbig==","shasum":"08d9d36bfb357b780eb0209204fda0c55fe0ded6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.0.tgz","fileCount":28,"unpackedSize":49857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLHiECRA9TVsSAnZWagAA/QsP+wS9yWN/vXgbKnrkcKhG\n4r105HzWzN3PEZEdMnmwnxjzp6NWPjKmm5mRCVtr31Z6zaDE0VLIJvgAbpqw\nW/XuwHp9Y7bub1fjQKWe0XyeoyRpnQkaI2+nnDel4ExUUnAeU6+EspggG1+E\nThYocTynvZ7zQiDcKkWKX0hwW/rWAHOwBVCzM2dTDl5noAhexNmu2R00GQTE\nYlDsYo+ODVsDbr641G6Bq/rrOQ4Ml+GahVjy0SYiuDr+lmJ5XVnjVdQ6uwem\nz4zp3xiSQ8FAAhRmoIQr45nD7POQL/hAQjWOil4ZNDajUojRL0HZu4mYWp3S\nnpbK/YMzw2OC4jGtyWBnkhWGqZLcM3vIzPzYMvfs7aeSw5nwNvKPmKJGk/MV\n5Yf8P89YpAjbADa2bI0xwu1u3F8y8eN1qnCcUcSB6YleFP/1yUFTGWiESy1B\n3Kqdxyt+n+RbsmyncqMZI44Iu+oQ6Rc3aoIedAEZ/I8601OMHocNf160Je4G\ntLi4c8PHknKAW7kWbjEWKQRq8gIiDYv0Rjds4aFASw5Iu4YCeRz83Bpsjide\nHJB1QsJ826urOAq6E0Q3dtjb0EEbaQR88rq0UTZPBxxRu1KgRsgNL8Pc5gEx\n8SHtHWZViEsTPMEKWVyZExBybReTC3S7opplnuIW4z0jcL9O0T8e5wMxy0Tt\noOdn\r\n=9xdp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvo1dLJTMie4bD0nXghCuTWPaG6Dk36LMPpEqPohjeFgIhAO1ERw2U5vDhp7b0JXhS7svVuCqSVlhOyQkKtChKIMiV"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.0_1596749956053_0.3017733249178416"},"_hasShrinkwrap":false},"1.6.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"c0acccc2beede16b904fb1096f4bcc6c5bd51a5d","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.1","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-xyvDR37hU8BabB16zvUXk2+VDVuOy8TBBrKz+CNpPOMyNU1/vT+Uq8y3nmsw8ewOlsxeytadaEs1yZ12k0eSag==","shasum":"7acc51a57f03b531e18ee3e4f0fc537bd5ac41c3","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.1.tgz","fileCount":28,"unpackedSize":53841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNxiUCRA9TVsSAnZWagAA/t4P+wXWL7pgeUdlpzX+J6Mp\nhtGrtKQgMnvugvqggxi+RSlxp/4XKOylU2pSsayScNafXD5uJcASvBKu5S5Y\nlb+BvJDU6D+XmM2L7SgJ4CGCeALkBkgnfLj/1Jy7Tm7kk6Wh3X4/Y6GcCjP0\ndq6lVwI/DyDsFe3+MqnrKYJYOPqCz4ynzbCOFKGaLtuYTXHA2Gfn43iq3y/f\nFW54WamDrhgfe+fHfNB7EGKsJvfKgjkf6rPdLtTp4uOYsavJatjAZf1okJjy\nwAwyaNYPM80ZvGNoGcUxThmYjVQPJoqLhKvFCyd4d1tjhglFpFDnFWC7ToLh\n2PmX2Mj1IiEDFN4G2wXlsDDEev1Ecbk2LEgD8mF2vTtYQzM4Qm9ItaFOl3nu\nZuNyCKR04IIWhYiyD1Oxpagne5Qpi8p5SR64SQ0Q1gyoiWSktOp4lyPRN0Dd\nCmPLn5BCfhXbRXIFGq+l4BVbQbs7K9TM/cMoMa5KoZZ3pP1e/VCmvVanhdEd\nZUrfuytg/u+bzJ6Gpnt6HTirjVEC6+w3n97xuJHkkBssKOPcEsXbk/s958UO\n4N0rG/bBdNGhXxRzpGTAosfYJ6ImPIhsAuC/TbT6y7IrOdhGXm6g4ulrIXD1\nNYwTRRrHTw1YiQg3UHS3s9Zxm3wgR9SzkF35t20J+P7CkBqHxw+34eW3pJb2\nPVcZ\r\n=1NOV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMVeh7B4k1pFRZoPphjriLoWF/I2Ezo9RI7n/9EDfMrAIgHHUjH1ZDPQDp7UKVx4W95NJgAcDRd7fehwrs7hb5AoU="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.1_1597446291842_0.7709311924991396"},"_hasShrinkwrap":false},"1.6.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"1100415256656f819fbd799b3ddb373924908253","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.2","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-lH5iVWryURZku0tJ4KmxIpeVC5lOcO/A706Gwt4W2g2KzSkKcVPVqcGriyn0dLYtPPritVa7O1vDt0shwRfywQ==","shasum":"fe1595dcdead64c8555d6d13da194fc4ecbe77d4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.2.tgz","fileCount":28,"unpackedSize":54083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNx84CRA9TVsSAnZWagAAG4kP/05vOtTg/NUIQznvnA4Z\nAsl6AcbXngwHL68xZ7lKTMRTPzcElIemmWRdYGnMeEDUyLhvM4daLnxHoKmb\n1ocRAO9jz0kpKwsH5EQK9ZG/CPpmBfTgW/Eot1FGIyBVj1JZahQa+fwnowfl\nc58dVDShupu9rmKf2jAMe8MLmJnP2eA0F4PZXnaCdbhP4mybTXatHC7r1Koj\nZtu5p6b9ZDCFS/TsBcFKLsx4/ecFHxo6rXcAEcvI8szZN6TcnRHnLO+ghlSw\n36fdEEcb4rZOjqluxKkD4xfa+6Sla75/2bwHCFnKegoN0dQ3SVuW//kOzCQZ\nak6Ek143uAASBAIEAWU1xlSZWFDgXqqDxah1nwmw6etUSEw0krqb6ql2RN1o\n+c9odrHvXr/nfAlTTG+LD0ZNOQBXsz8249wqtkiJyIXZcy/ioTejpg6WeFjh\n1KxXCvOdp8NHgNOrIzIWGGnETroUMUO/WPNczwLNTFSKzdCfS7Fx8mvxxhck\niRmhHqwDP0xxV01bjKXCp0kybwX9cmhx/62FjO3v2ZuAMMa7XfPdkjmNZAxt\nRzhx/gFMH5D5UzoglsGBI/OuIsf/fU0WcyQU/5QelJewICvMomMCayX1bmyC\nh9uj6OEkIjb+br1nfrqZ1upeKif05FYEE0xVj+PmkZ3sYXOn/LTWFZaDVUUu\nA4VM\r\n=v9Ay\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPBdmybbsLHVToYopIJoc59//SIfens7WQKEY7sl9UKQIgT4y/NhdlCCEwaVTXt1BanAUSrcDkbdSD7ZaCfzu4IBE="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.2_1597447992215_0.277611814028879"},"_hasShrinkwrap":false},"1.6.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"03a635f1f5b4e400e04b1105d409aac664b64aad","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.3","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-hVFHCeXvVhheDDBXTnLi+/6c+5pqFapMh3mBd4AWwiWiOa3iQ5uHeeT/v5eccKBbfiT0eBjuIA/Ka/7PlSog+g==","shasum":"087b6aeeb8c85ca2e57cdb2b5d2d7dbac53cfb07","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.3.tgz","fileCount":28,"unpackedSize":54325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNyM8CRA9TVsSAnZWagAAL+EP+QElDUbLAxsQerLCiQD7\njGL88ojcc8oYX25sptxS29ebQkOJUUWIKOEqtrIRqdm+/UcYY2wM5dHMQ7z4\nWkjYuVmcCPuRpKx86HUFe9jkprFflb7LhmbFsNfqnk3497zfH0EdZpy9zFGg\nQlvAH97euirvWSAKSU8677jupoFBwOI7kXl4NOfFBPeSPp6vE5fJ5uLMAp/N\nRYtBo3InLfxgotTYFo7cbYGRKAadgHg3x138qEDfW/kfqksJhxmWApH//8pb\nbfYgz3QWsWnTbrh+ciHbiw3blQKTXrGIV+YTQjMe5UdM2ewYWR3Y4biXXr+n\nKMtrF346hJfwWZL1e8/5yw0JNXOsyD+fm1NY3zK2b+vgo97tz2LpR/nGQnOk\nsenslEnffEkILwYzEvhWzoov0EFID6evmScwRnAnESEj5SSarOBrQGIAGPUu\nuIWjkMtP6Q+8N6lQVVPsfhm9NJNAHAK1+sfTF8oWDKfuLV1wnXae/5wM2PZX\nKPDIx5TkheFRyhPAYZrnXoLqf59GrV88t/JNgRuzY6JLRZsBPDdzKvY0FjqX\ntHhiSCEzTSzH/KveaT3PBZdDZDmY3NRQznFPmewW8ZzLilMutn8h2Y3Kgmrk\neLprzujCMO19OrV4m8k/hgz0evMNxsY9DA6YtIia5/fOnuST6W5/DtLehMff\np966\r\n=4Eg8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL+D7hkMbTziGgo+rI9A3OHV26zrFV3U8eGfUyIbR0iwIgOQ0NV3eJkjIeL+st0NuD7iEAeB//4hRihKc4R6uFSpQ="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.3_1597449020339_0.5678575996633737"},"_hasShrinkwrap":false},"1.6.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"f75068caef821e398adbf5446c1aa7a8c58d2e9f","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.4","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-DhDtc6pEiSHSd6L4UQ13FtBq+qzJljmUkOII/6fboxAVZ9UNB3f+VLIQ+XBmpAFeyrCWGadY20AxOsgHTbo0Aw==","shasum":"e7c4e10ccea5342b58196507bee0660eba1a636b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.4.tgz","fileCount":28,"unpackedSize":56454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPZZHCRA9TVsSAnZWagAAoE0QAI+yY4A2JBLLiYQ4kVsh\n3ma6SizuLlFWheLJ/ly90OYQUbzSMF7g6rUO7T1AHkSlRQfTPMUNQ7BoiI1J\nkVudq1iASd38i/zJ3CLHtg8BqVVz7B8JICKD+DFrnYq3tdaXCwwmvnx3dRU+\nq6OQycxlxklxrl694B7JfDMx4UP21y2XqNEfdo0+gUgEfM9U8HOzKjEckcrC\nDVNam16Y69O5qwGw3k8th4PhddjPAzJQG6xl4o83VhomoEEsHzau5V3v/g/A\nJKI/9b2MYpcIXSXB802LWHHI3kelXtBXHP+vogdxvQH8f5Xo6cgfzq1Vkx8f\nKZhTQXk4wbfIwx7qRoLe6EyEDV1+pMgFn0q2IwfGzUkenWZvdxU1dZ+3rrEk\nWX7FitUxJqcICUtWUf2VxSCGb/svrLEJuhIfnS1fsXfGcz/kXQsiTe1tkBG6\nACshYeXWLfEFdHyZOxk/j7SRFQnzzW70T3qlubdJlDZoM6+IE4mNj2McHhMA\ndks2bSL9Ee3skiU9dEOVVYZ7IrGeJjtELfVKBzmIAsfOvcOySvXAP32eC5WZ\n5Pf4H28cIa1mFtRpFSClXvbP9QoXO6MdCdyUxIYu9ZTNJrKp1M3d0eAX1VfH\nTvJ49yi3KEI+yBuClnL2Tr6wHO23jVoP4JY/bH0ZOAwB4Ryq1nhctAypmnvd\ndMxN\r\n=vosg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbqHdJ8oPWMeI7BWaptODf7bj5Ru683CFXdKx4rOLlgAIhAOogES8MIVKBGxN6XOEwKpQw9cLd3c3sznVU7Xn+OCPN"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.4_1597871686552_0.0913949811902659"},"_hasShrinkwrap":false},"1.6.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"eb20a3a9350cbcde99bef997225b04d5e9ffb30f","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.5","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-gKcOHr0GocZsS0kIKdbKwBSjo13BfGaKYWlacQo3EG3zm259aB9vSQVIoNWNZHO01bA641uJkxgVUBuIcE2KCQ==","shasum":"194388f00482c657ea92aae0ba8ad5189d50e00e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.5.tgz","fileCount":28,"unpackedSize":58886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR/0YCRA9TVsSAnZWagAAzHIP/3OIexUGGMn6BZwq3nCr\nHLl4zW4Gwf5GKEYjrr1jp8PfjgGZdraTAepuouT+Z7eZBjWdPvJ3Xq1Z3qgx\nt3yqLRdnj8bZgkp9w9sY5ZaauEwtNew8mO5rifuhzwbO381EHMtFC2O9k0Qm\nT1SOCyJ6kDTcMiRFuxNdYmPix81ldjI0JghgUGn1FbGRoDT8qquI0bTJqvRr\nmO2/nb9v+1XBX6zMvGkL3t2pJMz2r5GujngkeY/1f+0mYPtF+O28tTUMR8kW\nUlilbOYVLsbnvoUXeaK5o09HCHwspxFnyph5XUcQmACShElhckjbCObz/vnr\nB9LTK1zJLtaBA/F8iP2SQsZe/ZbmXY3AeGCxKmW86dF+sAquCurTiqFfNWSx\n+LyshMS/8H7gcsBNb9tmMdjS61HbxACmPwBCwPN8Sg4Z/X29I8dgqDPM39We\nFib/IvkkI22HVTKLMkskGjqpWF8JedOL9URuRqtz6Rh9iXGNArFxJGegReN7\najRM25LLFEaKt26YoYacOMebwwDNVd1/SB9TCI3x1hNe98gynwb+hRGIpSeG\nNUaHYN9JE8/Tw6waes8Qpe9NVnMFJLUUmx0x0p1UrxMk+fOF56RbtrC+lm+U\nGUuSlcwLzDYBSHrrHiZGhtsRpnfc/6jIipcCcomiTukJM+Lfhnia1igPw3as\nTDii\r\n=0DrI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmIhn2Z+QRHutU5DSc1oOOFdW1i+fqo9Nq1bXgNUksLAiBXXAcCfDiL1/cQtLjy/xCiu0v68aAtx1lFi7FcciYANQ=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.5_1598553367816_0.35578997321769523"},"_hasShrinkwrap":false},"1.6.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"7f6b59590b91026441d74447e86233302d0bc705","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.6","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-+VH7wrF1WcxC8yzKeRhrEapliPTfxL8KhQz3hgd2Uu3qnYKtbzk2Pm0LwirwFV+TkUhfRPuOuUWs/S6AFCS1vQ==","shasum":"894df3984fda7d8bd666a57a6cd90f411d5df257","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.6.tgz","fileCount":28,"unpackedSize":61117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSoV6CRA9TVsSAnZWagAAIToP/iKTJ0/ZlP9EnisHKldy\nkfrMBaoUnmPHiUO6NDlabbj1Kgp5pmD0pP1RKfIwaBJoIvQFJp+JYhMltO2t\n/hMPrN6fnTiYv5l+eexIJOfzeELHLg6PQjmrPzB6VAI6oWDEnl4qba4oWGRi\nKOzE+vL+wR3dk+xsq6hvp79k8sYwhEcclzyAMGwvXcpXY0Z7XKJSkL/IFvDz\nv2eGuUSGetjLeZMdxz1ix8YgE8OX3ZKfg+8xL4IA+k37KuYT8dfDUGFu34oI\ny0DTKPf+u9TWNC6+2A2gOD0pGafflmilq7Qyk5J8pqVpKWXQ4OEfv9betcPF\nfiuDJpN6A0h8Si80P6SQiJ+3aKfjclhN7C5NaO/+BCGgCmGrNzYhvfWbR4dz\nHZu1dFx5ZKFqHaZJk0on7y4kmL84tY4RFVrUhXlILtk2Zh28xljkMYrPhxq4\nLYu9t34ik7z9ksUnbyEXuTdkQDtt0OTSWr8rBPoIwBalddGH78WipyR3rIMa\nVYni++d8dofBhDoV8hwtQAu1E2usnlHOwFbIVx9KYA1MH/3cX5C9LhWTRHjZ\n8fHLCZqG5tJmkJ+wK9PhkfNcoDZCsJMHzobfy/xiE126vrxziO9yl/Eh9dnG\n4D++rDhbm5fGyJlL33hbh511YsRtZRZkE0wIk6Ys7TGkW3FcOsvk11b/Itap\nTI+s\r\n=g6vK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBH9ihtrXqi5ULFkalG26wuXqyFFH5ICsv7nCpYrHFj3AiBLxPvqS7hMldWy/2DIu6jIPrF4qGuHi/4UKdeW5O6VXw=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.6_1598719353572_0.24424140660181703"},"_hasShrinkwrap":false},"1.6.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@zeit/node-file-trace":"^0.6.5","execa":"^4.0.2","fs-extra":"^9.0.1","path-to-regexp":"^6.1.0"},"gitHead":"84f2d6f9bb5fd7f4d0970ee919a554a4d952aaf2","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.7","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-kOAmh7MjjNsiMT6buIh345q/fmzrlHJwAPy7xpGeO0+Ly4kefPv7E3f4F1tH3OALK5sYnS5gfQgm71/t4ZwTGg==","shasum":"812a35efa079a6d0336eab5a3905aca7385e8783","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.7.tgz","fileCount":28,"unpackedSize":62351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTWIxCRA9TVsSAnZWagAAbZQP/j/swmUnLmPeGZmzYbVS\nZ5RkgLiNZt+rRnz1eHYLgATBUgvN7ldSTYmlTPSDs+ZqBOAAyyo3n9KT43aC\nKEycbmzno7di838HPc47qmYwxTqUAPOQJ1+rpYcrzcy8QgyAnjzUCHwHzU8Q\nFm0qBIZSWIgShfHD76KLnwbppQQ2N7ESo7LeAeRglCEE5BkKgonDSpTk0ocR\ndA2hTfAOaI9oNH3sPkxj2IP+TVqQjXDbWJ53D+ZlTh9aUyjiXbxspIN9Sf9v\nlmysQ/lT5trVlG0dL35GlWpSX3pU9grdpMrWZ3pq8J3Dyn7gplT1IX1Nh5pA\nx77/PazCSoEvliyJ4UpG1ZP3tLPndPfdpiQqDn1anuupiaxvII7umbUVbmSQ\nfUtLBYvA5KliVhtdxcjBPmY9EDGerO8X5loO608h7/uzABVda4w5pN9SBxvR\nc1hvI6u0tbiDLcY2jWvXCQH8YO4CFcEZJRl8pCvxNqlDr3/N0zkuTbahMwXl\nIAOfxrX2H3o5fbhUFJibN15C2P99xKm3ZkM2Z1K9mlU4Xbcuzei/TBmV+iu1\n2QTrlGbZqPHTsPNGQ8/xqnyhAh7POYZUaqwnq0DT3i0z5+KEjwj1Btp/2O+c\nNRntGDfyqVtGr1tbf1GayUQn/qwfL0feHni7T8VVfS/GkY0eRpO8vPvqdr2b\n9ano\r\n=Ugyw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB34ADPQ2GIOakGdaXUZYG3Oydkllv09Ln4on03A/U1CAiEAjjHBpKhJVLakOcect+qEserao81SLuMYlZii29GKKGw="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.7_1598906929407_0.6082184125761707"},"_hasShrinkwrap":false},"1.6.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","path-to-regexp":"^6.1.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1"},"gitHead":"2d0a97dd833ef7d116e48ab256352d97d11e4943","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.8","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-gRrEoy3diPCoMGitNL5s3rzRqPOYgWHXp3LDQPQ0mibx/7Pa2XgqrvEyIP0Oe3GC/uTe0nKr/prD03Ksl0bm9g==","shasum":"5b5639ee0950338a3fb487d157c8a92fb5bc0c45","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.8.tgz","fileCount":28,"unpackedSize":568621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWl0gCRA9TVsSAnZWagAAaDUP/27TdPbV3m/nyZQdprll\nnxOrfXDpvPD6GIfRpuFsfRFySbYHLOjWVIZCRyUD/1Qlm7e1lpppRIfc74Sd\n0FH6H0JZx25ejEU0pEUVstLXCjberB0/NgIYG86R5Lo6RE3T2ABuRw/OOztd\nd/mKUxrNlLq94ONl8IcBtGdvgT3UE7F3KlD9tHYcG3jMBD/kUslWJ0gx27x3\nny/gq+T4nKRcQoHzlUYCNYQUdTq2tATdjrq+6nYbe6eOsJifiLQ7CL5dvm+y\nIkFfh/Azs7/44BSc2CcZKhh/aOJBVfTwts7h9M+P9uig7tWyMcMAXHNBlZUQ\nlNUgRoCz4MrjAGGOO5L05WqEHUREcFkp3E16URzQCt5lcs/4xekNWG64IDhG\nRpWJY0cjo5h7/NDz3WjnQzAgCZAP2Kz0y0VBXp8pfK3FRsWoyv5EgVrkV1L3\nqJyPWRN86r1skZJ5PAlcKfNfPG3feKmCHf3tC4lkHOErPiMFtGdZZ7ulWJiE\nUOJS5eM0RzsiCxh9aC1daUYUtPrPjKo8RPWHgP5xTr+yA22eyvQfeWX04Kiw\nPe1naI7bfS3AWsmZBXA2sjqPsxVwsybymveUytm1dJifxG3I/f7/wAJps6yC\njD+Iqd73Be6Rp/Jv5WEz9lZSrh6e8+V+7/nyzuiYxKKqKwP8C+bj0/AqzV64\n6ANL\r\n=pBUU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApcONjYvv6IFMKjf2Of5AzdtdE2IwUxp6Q2x8R6fHSTAiBnreg9n0OzxyH7io2yscdztyBshfb3bRmhAZqf0Czfgw=="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.8_1599757600187_0.6381974968360129"},"_hasShrinkwrap":false},"1.6.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"8c99545c5e538f78f7c24174578e530d43e25c72","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.9","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-RTi/N6ThFND3C9zrMEGFmVF4K6hFVwWJeSyZTp0h4OWe2rGWQ+iyksDhea7T4D68p6YYdtR62p9gHcLwbFSEvA==","shasum":"5f1a93ba2a25a87fb390cbf914624c0707cdd671","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.9.tgz","fileCount":28,"unpackedSize":568984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWm78CRA9TVsSAnZWagAAAIEQAJwKhV7Fo3RL96Wb670N\n7uRvGBPYPpBYELmSHGY53oId2yGxWw/a1iGfFyjjlHPkPI277Kk2JUQPd3p2\n5V7ynrykL7Nn417fAoGcwFU34+tqCsRBuxnUmD8EtX+EpfDz5oUskjMB7Bxf\nQK7bWyKL5HyIuXcA6mN9X3AfcnIRTh71n0joWaXUBKelvKlttFs0I0ydOHq5\nh9JCP4DvB1urOAJqr06S7Lpvvji3pnIaiIf1mloJPx5cLeU/h6H4MfO9cWT2\n8bBg6OOMskVWqgTITcdvxCammdSJh4hwOextcpRWMCdDj/BJj37txPy2TkEQ\nMrt4xgS4YGLJNFwvw+Kfpm/DRxR9N0RDWimv93OIUQ/KRq55marYpjbMHO1h\nIPP8PeHUwR4nFFMh7N+ncaejEmF3YYaAid3RfBrxOfwn9qLa5tgA6gODMFT+\naHF3x2nDPobhpzPMwAn4ME7OcyhJpiTYG9BfpqZeQTn0P3jc0tr0QylQ1AQr\nHXofVfyYiWuXFWpdZg6XwUCUM709wyS/b80EuyMNA5E1zpOwgqiRz+yomSx+\n7TanfEKolEiDy9fLZEjkIDJ9ZT6EOheglZY7P5risKxTw5QuKAVJREy93SDz\n2ZIyufbEuKQya/VNfOIIzmp3gCvCSafhKzWHTU6D81OQJ9IC2rGFbr69Mwhy\nG0Bv\r\n=9kQJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDuJfJtH2EDwN4zWCwKSxE4eD1+8SNUA+mEMrRyMEA88AiEAlEgZCOwlrcvM6bUtaso4h8Y2NSSCLlCkAYu62MGIM+w="}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.9_1599762171558_0.759047743316243"},"_hasShrinkwrap":false},"1.6.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"88ad51f0861397cb7918b96450580a17e27fb736","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.10","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-SZRULWew7ow8fi0MqOmBdtHk5ECd96r3he0QO8k5hefjgfWldPnuNxzWXFByS528CJtdpTam82wmGfpGO6n6Qg==","shasum":"2783584ae3dc6ad1a46519ec8c1deaa2bc618ae7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.10.tgz","fileCount":28,"unpackedSize":570498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYjh9CRA9TVsSAnZWagAAojkP/iDQA95ATlISaRYMQelJ\nD7w7grvW3EqgeiXlAwc0YKECJy/P/cy/e6vyCuT71NzXlZFjlS4cH3yAYJgf\n9I3EXGQbbG6cwGd/N0EN11qFc4/H/bfJ7eL0idHgRFvvZG/xTlrmiCJJGbAJ\nvbivnsYDmyIB3khakKjbEbbigj3rx0bhNLGz0xInTmUwTaQBOeAZusMLzKVw\nRoSx5ol7auOVfKVA2CtIaG0EQNZZx+TjmmzaIERBjYHrVeQOQk1+oLkMlDz8\naxBCroeMga3Z7Om/U/SYmWj6IayzJ0QUGLITgQ3JVdoGr4SQ7VvKcKkUuDRm\nds9tEu8gj3CmkeuGCo3F5dn7TdNBoZ6OYHme0ybTKkCbdU8YsZIBF++zdADP\nD7czITkjtx1YD5rf7fVG9sZ96dR96Ejd2YXMMP+FB3HgTITCLnDvIiVUTYAF\nd+4ycP/0JIvE3U25tghI2PWi0k810ZxKg7oaaBVhq3EQ/ABt/ad9E43AhUJj\nOvougW0jBoLJcXqfjhSR0P5c2PC2UWLUoKLk+rsK16cIAkEmdysCQ9iLLTnN\n8Ce+6xsPlxAkj4eurO8V6Y2hKLuDDALjhc7Wo0XDjC1JBlOGrFx8w/jrWdDq\nTlGPFSDJhxGBJeRxl+cYwHYFjOiWWLvW/+cAAQR1SXbY9WiXj1kJadPVA3D/\nh+dW\r\n=i8/q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5jyBd48nOovdK3gplV3H5lOj4Mlw83jjOY7uCCDytiwIhAIwp22DLlziD3WIWLjy8et7jcyJ6J1t27w1OHFl55NUQ"}]},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.10_1600272508485_0.38399425521382513"},"_hasShrinkwrap":false},"1.6.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"d4cbfa749aab66f5b637fa2d0a75796d7a7ceb8c","_id":"@sls-next/lambda-at-edge@1.6.0-alpha.11","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-FaZxq0NHCSTPTz9Q0TqJFoq1MZlRMhQyn6ZdlfwSP2Hxv+DFMEZPveCMOcT5uaZu5QN11cKG3C7geV2MynBxUQ==","shasum":"5d9f156e1a131f68f3672eea366639722daab962","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0-alpha.11.tgz","fileCount":32,"unpackedSize":577658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfawIaCRA9TVsSAnZWagAAr+kP/i1bj30t3sKctRwrGFSJ\nADTnD8f4eqhS7NWNE/GsPbUV8yKl7neZil1myjVwYoMPwjPWIIdssO+VvkMW\ncnYfTQiZNJMA+Bf/iF44FtucS9JRhZctuHt5A7nkBa9YJGqTLoh4YxPj1d+b\nj7aD9nOOVjVi5cJrWyYjwq4MruOy6zelzBmMTGp5aoFDF8QOHwLNrSHTcj7z\nIDdX9hh7aItfcqD/5p2Nl4646OhBcqPZhbaDyf9W42NHkArc2uPBNZBtRig5\nIFtlkUqX9NSr4HqxUDpw857/V12xQDl5ieNcm6uWKAsRjblg8xSQSULG8Ee5\nHUsJZMbHpOlx80a8AfFswuU1poRbrb1zLHw3UPXqwTcx9ryYym6lGgAkEdW0\nPIYrmlU1LUiFMf9ISC8cP3NEO6Y5SB5l28MGgWGDOrl7Zacf4u7BNbY2YBOR\nL8XOs+GJ6Ia7M7k61gB40KN1D/hOwg5Q/wdobrE0KFW9sqYVpraZOhQCjrB/\nkcNT8iHeUPOperT6CwoyfmkAPLAtr0v9iB/X0a53wMFgM2fYBxC0pIwJcOgp\nxO/6oEeBcOn1iuwNJ5tlMXFxAg+SNcXGVgsSAUbaRLj9zqK+CMXVLNfDER96\nGpRqrjXuiyrVQhoqXR12/YA3oHtHc0f5YICqLYBywiNQMril5Ked41gfvlgW\ns3JE\r\n=2LQL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVTo33ZCqMFBa+dK/ouVxyuo8F94rbutHJAbKGhiIKMAiBTQtTMPoDf00PB72NvEKYJgiYUOTZalKYawvbPL6LZcA=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0-alpha.11_1600848409376_0.31760478181227425"},"_hasShrinkwrap":false},"1.6.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.6.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"486ebe847dfacb94f3ac4d4bc854ec76409a070b","_id":"@sls-next/lambda-at-edge@1.6.0","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-MZVTXTDHHESBuMWWsrncdcADY0UvI+JSFYEDZRDM1h1bYn026zlwgcpxiopVvHGGCdPiYs6G4Ab+UHAbMPJD7Q==","shasum":"dc7c96495b982d5726442b0eb0006fbfe4322c0d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.6.0.tgz","fileCount":28,"unpackedSize":571719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb4NqCRA9TVsSAnZWagAANOIP/Rg4TTDl3a0TrkRs+XQH\nmDH/2AwipJQWtWMi8uTt3hsbYtUNCM71FMtgWG1ZFIvuTWt4ex7SXtgx+Bip\nVsIbppO5dZRpsVi7mUQ1ATR7nlTrGJ39SplcUkjvHk2ojKz1CDhZiAvCZ+Y4\nrLTrfo45eNOi8thhjhE3qDAWxzxpOsXeiGEW3RAOX1/tMJiwQbdZcwhrtMXs\nwPoCxTVeFyUM8JOHzKhTtIo7hgTuzx4xQFf479zkboZBVx3/vkhzcr54LB4i\n/v4hQqCp/d52CH6Hc2EDSsErkbEaMyrd+Go1GWRXqJ7Rko8dYFwvYg6CQNfc\n1H+vwgDiEBFxfujfGc4rXjTp7OD0ckaCCAPGBa4WF4ASf7XaAeHCg7gf/1QO\nGO7xyJEnuriAayrtg7rEyWFLpUK04+Yv8BDfoBE1i+wsquOggLTNgcTpKb39\nNVkhR7y/X/IJZWXfYZK3hpJI6cB3/STxZlG7ozMUguNiNfmJ1CoBQcD4KdLz\nJXsyLzoRyfGkbS1fWfpACR1WIE+6OXxGbsbWqWPztRI774FfrtYSGw5nWO6f\n6Pno/eKBvn8JwKlYRQTiX5b28aGX/3P5t0FeTQemT/cpKRVXDrj1J8yzTxH+\nMZsf6nt9ULAmZawy2csi8g7Py5HcKdsDqUOPPyY41PgLw3e2rPftUQ1eqkKj\nXffK\r\n=zA7n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyIWm23+GnWpC/k7oV+h6xomuhec2cxwm1JBewKlP/hQIgeVenNyXFAGfZBboQN549aoqNj2ODhNVpUZ/Pnbr0848="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.6.0_1601143657779_0.9545866848657751"},"_hasShrinkwrap":false},"1.7.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"ebdf89e8da8bdae608ce8a571500bb1cda1f93b2","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.1","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-gfuOB00PJOJB13qgLjtSo1M6/M+fGmJMONjy56xYrK7tJJa0/zwkFCjEMl0Qa2LUT/6WCbbQNRGhTfzCSbf4ZQ==","shasum":"bc6128c8bb25c693696e1cf8d1bac2c4ef8e9ee6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.1.tgz","fileCount":36,"unpackedSize":600655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc2svCRA9TVsSAnZWagAARPEQAIN9j6L4zEDuM1UXcbMq\nIKX0evyUA91in3p4TcBMOX/JVPNmK22G6A1cQxI8ASrSatTA92e71FDF6Be2\nOX0/hM55Vrbh8SwPw3UcCDbeXgHktaJYfWU5TV8J1KJoVYdv+eTFb5DHYt3A\n5DwOMLDA04j+5cEeLDonTMOjtp4Waqx+Gg4SAFb7MyCfDfcaRdKxag0GEuND\nyoPD483nXI+QjJSuKezCJukgmBcjgXsvoqEY9yCE7g3vwBebpgM0zguKUeT4\nmre5nt23DWlHfbmcMvRfIe5pH9Jj0nfNxpAZfy0QZCfSPCtL7CK1oqkjcJod\nxQ604NP6/GJ0esNOpGWYzzC9lQQuz0GVOt40KPKxaLyD4XdU1rbgbXSUEsm5\nztc91niOcmv8Xvf1VqjnGdnxdadAXoIIs9m62W7WoygCdDpY3NlmyGP3ELtj\ntUcJE6DdG4gMWrYLfqIIVTIuIH9d0ZcCO9XkOfg6/Oa7rCqR4ohBoymiNcHg\nsmYZJr7UyuKo0czGULy/D801TEm/1QTcd7GfMXBlSl/+rEa82ofKrruGOTxi\n+qa5DWiUpzCB9r08S57PcjJAUbTZfrdrzJPT3zFKSDFyXTZvfasDxz1/tdRN\n72JJyeshc/PKYupakx6na4rzPWKsoXoxhUZwP7gvXAFg2KovSh4kjlM82A3A\nM08t\r\n=pCMI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoIDPkJYYCKc2d/452n/I3Vr90p5kPf8cSLeUyo9ywsAiBlNZ8VdsyrgeJkdDWBGSGQskL7yk/YNI+4aMAk5aInxQ=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.1_1601399598672_0.5418599328637921"},"_hasShrinkwrap":false},"1.7.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"ed55451c2a6a6b7fc938601901bbfc0a06a159c2","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.2","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-88uNOP9vIuvx3CY3rKG3YFzIkjHLLfkHBHsM7ZWbYf4TRvYQhErvT/WqKAsXCKgWkxQjEeS69amRjzWAH708bw==","shasum":"c005513adb5f8870cd357223a548d23898819da3","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.2.tgz","fileCount":36,"unpackedSize":603301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdLq6CRA9TVsSAnZWagAA3/YQAI4NQT21VvlKOK+GDAB/\nMX/uoNjujgnHth4tzjb/6EVgqrGIO+/T1ALlRozbpvDopOCmZFpRALvUoqJr\nOhR77qAKsHpzpoT41s5ahN+CvIkp4NVs0KdowKDSGVC23aEdbik1cp0p7XkU\nZMOuxiuDsigxOkv8ByQV4CC7Ye+bak7JmM+2Tl5SjMk8uB1GwIp3SCZAC1Q/\nxn3aPO5C3FSOxB/0jf/5agMMVpaIegvzga4NRK/UGGWOhl79nIqrdGTZ9Mbl\nbLX554FohLktJX7ZgFGeUnF/aBgeIFtjADaLJnsYbNrKj55yy2mlPRrtR1GG\n+xhOlBmiLs3jdo85tCFR6wcAe/AWvUblLSvIB73pzkvVaOfoqc6l5wreK+9w\nhT1+JRScJF5C6GReYhMoKWLg9l0VpTLwdmCdiDQdkhXjMAMvxLhb35RWAswt\n4oSzu97+50efO5lK6AqZJygsRnJzC+AVcBmQWCO0Qp0I1MMKS17T0wKjWtYf\ny9Rd24CKclykcoGzS/XpYN31a7D0Opt7AG5AMKeIjxGuuTbG50G9KnjsVQqV\nac611+xglOd7bgsyRM+16leX7qIT6a/Kh9nz6pNgtEOI7bOiMkwAqgVaXyC9\nYeoeRIXjRIQiyhq/TaoVte/ERckhl/KmHSOibpXXNro5XJ489KruB9H0zaya\npP3m\r\n=X39G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLL/nrDVECm/EA6gKfzVJ1egWrLaCL5ZKz3rYh5dl3MQIgSIqz48cvj3MX+nOZIXImdUkD3nITci7S9lj6NqXVltY="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.2_1601485498199_0.5666285666839246"},"_hasShrinkwrap":false},"1.7.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"9de6216387b7cc13f08455e75ad4e7eebea0fae2","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.3","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-gi2K8daOTSGG2O4JoE2Y9GcjJ2BR7yoOND4Nw7uita2lVYN6OC38BwyEQhL1Uw86TwBixArQPBYEViMEl65qDg==","shasum":"a55ac3aca7de2319fced367c1396dc19e6a6d4b7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.3.tgz","fileCount":36,"unpackedSize":621439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdPg8CRA9TVsSAnZWagAAo74P/1wuIMUzg83465DhS+kd\nKf6lUNLKHxAqoQHnFc7jimfEpkrNLAQCfnvYIk1fDow2ixhh2Y1MA3BOZtk2\nqkXYVNiaNLRv9FNUK5kqpXgGzP4qNe0KNhmoM509AZvROwKxLCRiLDN2v5vR\nISJ7PvM7W31ZGRf3wc6naG9fbVtJk3Ymx6x4q6qhU14vQvn+9ppOCJwxoGf0\nq36RQL4NhfCOCRUnU56kggrHVN5v46YH4lLDv1VfznrHcVsJTApLaGtfeuCe\nSZzFNsuBbxSqhpO9uv59Dnk8stnPjbxVrSXSc9AWRYJwXtBRAt6cfd4mDXV6\ng3LUMSvr1RIkWaYXQJpriDB87d8w0s/b2Qcxo2oEMNC8N4TSTrrfC7gbx1r/\naOJhuR1FekGJohsdMQHsmEPjrdu9x7MMf/WomIqyUBqqhY1cuX7/2kIfcFOc\ndypseN6DziwrfJtwDY3ZFFxso2yWvS++G3QiESk2PGDAF50aeROZhe0hDWWE\nW5SFOWdY9TYd3ZMELxNGtzVNYxjNyIpIWMzxfgafU9Bgo7tAMaN57CoGMSlt\nGIozWgJQGa4/nJAAbuyoyaHKkiDB9+MDVw4opvwPZWvHWvgK5C9AgcrqdyQB\nWMzggTFjt3XVRWde1kYyORS9gFYirXWQP3uhPTxRDJpZ3yuk1AVgoudhRsK/\nLsr9\r\n=ubfR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5THv2tBg5zBCt+LkVJysBWW/O14WqNxDnS0g4yAoPlgIhAIY7QUDHIexhLYfMwAgWFoIVJkxwspsD+NXrlZDXGJL4"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.3_1601501244419_0.13526711382829015"},"_hasShrinkwrap":false},"1.7.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/danielcondemarin/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/danielcondemarin/serverless-next.js/issues"},"homepage":"https://github.com/danielcondemarin/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"1f2d15355dff6ca15c496ac67759594ccbf838ca","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.4","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-FgtzaRHUNkj5LVHZPrGRAD0O3/6TzyE5DTp0Ry4WpV9N2uvzFOhg4OpcIvo8VNsoyY90utTzDWhrEE/rjIxQ4Q==","shasum":"177d245ac2a37af5fc307ff28152e46db410f0ea","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.4.tgz","fileCount":38,"unpackedSize":628760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffPpmCRA9TVsSAnZWagAAoQoP/3UhGmnPcboGtSu7e78Y\nUxKk71ChTEPeDW06y5GqdZL2uFQ2sd7nkG29jJQeNvEaxQxXf5U97nD3hjz2\nX8GieT4omKUZRQbjuvdzoZZcj+gcnbuXCQtfUxnBKEl0BW+FCGWYYmEPLEEh\njRrpgu/SObU4NTKIRZSjjNHjBgIG3fi1sBWJyWhAHPQuK13QYAy0Fg9JNCnG\nMRpjL3LWmgb4a1zHsMc+qS/BctkIR3k+AktcoyogfRttbJEDW7408bZOEhqp\nBdVwK6HrpnwN34mPSwIos4nmiSONvKgyFgAbsjlHMoX4sm5bzff6HaHF1Cl9\ntqqYLXAL3D231zS3Ka9ewtu/wJmX9PicTCOgpHxCFVfcmTR4FnZLWzs9oFUm\nE69DItKhD6LR+ex292jScKtKe5mSZ24zbUXlNNojsJcyYJ7prQ1m26eLqfae\nlz2V/tyGrJEGGcrLBGLgU4OK3ip6UXaECqBwooxGxVtOAvzZ9xAXR/fTc6/l\nSOi2FAacX3LMR5v294L0MxAYuITasLWFMi1f4AsW9tKUF84xf+qc+yfcfjXx\nb8gGeDCI9i1G1DEjZLayXsW6WJ0bBAvZJtHHG06o+KFBZmHDVJ5R+5ge8Zct\nYdb/kIMkRagzIslDJJPnYAPktMCWCcit6n094ySP3V1tkNmE7lrPaqhdfOh8\n/aV7\r\n=CkxG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtj6B0OMNuVw5MxegAEig4Dxwiu2jowD1vIDAW63SIyAiAtae+iyAVPKVK2gWuE5KaYuwHSG+AfMizsWWGTYHcBow=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.4_1602026085688_0.07883515083053916"},"_hasShrinkwrap":false},"1.7.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"f826ebe225f6fae179048f44190e3a2415be83f7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.5","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-mJ48OgBTFyNWE0VnAIAke+Gyix61S1398NacU54TxgQLZuqvAatvkCkpmgxKF0+CwSlwNNP4uG9FpcniytEIZQ==","shasum":"b85221c47f84c1856e429fcac4ffda8b94e3564c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.5.tgz","fileCount":38,"unpackedSize":629006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffkg1CRA9TVsSAnZWagAAJF0P/iZezO3XqF9Bijy8dTVH\nvTIwCo0Ur1AKppRQLzxdQD9L79tSCj8Enn5vSErdyS53B0wxQQgF65qr24jG\njkQnV7xeeadf2+Y/B8UBPwF2UZOex6WfJ0vngZaqpVpNrBISPnFPpY5dHpJ7\nQ4gqsucqNRszomX0aHmI771rT5SfaL+cN7u5mr7hTD9Vl1UfK7mW85ofv+Z3\nf1qGNv84axuVOi8nPGPeMut4gMR97xhZxMLZFjmjqDHbDW1lsy+wBS5/9QvK\n/eG8Mn9Vnpn84HCRpVwif+BNM99YJQkA99LTH7Txv7XywL14Vjdr58UIYkWr\nKJdT9e3olC0pwzmGFmo0hCr0Rz/IJK3GC9VdleMmWYWsPZrq+kqvpJtxhxU3\n5GBnnciLajB41fH84x8gLmDdw/x9gARZPnq8EH1GI8lmlHdKY+JhT9/Xkhsr\nE+YX6LxWIpPW0L1UwqtGms7fhYwp35kVLA5oeB9wc/aR9x/OzogePiFxBOQZ\no+kmj/PEh1kH2iW1bl+yW74fDdW3XYPtG+nfe7Rx+6z9sIId6Y3Pxp9eaPpp\nf+DscZvzw0zpYzb+P531NQsNdwm/AgWsaUXHIPwKeGyCEq5Gwb406NMsvDVc\nxewgHzFE4bsiJ1eGZzdTePFCN1mmy90B9mLxF2B63QPcbHVp9L83sM1ErzLK\n2t2E\r\n=grU5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyS/SyFjFnvHpUvqDSAAjkXP3mlU6hpIrlSCeFc/gvgAIgApE8QTurMoEMOhULHohbPuEo0E7k7ZuAkdJSCz1v8UI="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.5_1602111540612_0.7643893403088482"},"_hasShrinkwrap":false},"1.7.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"d9bced1756901ecc25c893816623a48535f26379","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.6","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-z1pE7OaWazEwPKY6B+POZnG2z3ZsRGqsJMOgpPo8gv9eUGu1a1hxZcYqQPPDJPMI50GOQZtS63URwp36w8VJhw==","shasum":"6432835ae509dbd65b3dae025107f89554096830","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.6.tgz","fileCount":44,"unpackedSize":836935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgAa1CRA9TVsSAnZWagAAH3gP/1LPSs5ufMxpo6W8OHH/\nswt5jyFwQ0E06Vo/JYpKbUV+qFkh6WLyWoXvaEjskg1ETWE880xn4N6oH31d\nGakCoXJ2jjDt1HvDgR6UKL41n5qoVWgv+Rf02JGHc65wbNcps9kQJrTJG4OG\nLXER3Utu4Hg+nz3j5Mj4piB3wjhuIg2xLMVnfnX7/4S7XadUH6n2UTKyVnRR\nS7VZSG+bfTPClJ/6jhoD0RRyD1ju3ZvklOsdaQECTuishPOQSFY5nwUqU0h7\n9Nm7oRD31IIsxpPgcdLKfwA9UqBzYaY9fo/MSo4WRCvUp92IEYyHKXtE5kX5\nB1/CKJdEZufsP932KHTHQlUeDXi9p6uaie63abktTc/qTOZOjAlPauop5+FR\nsJEfyGaAVbAml4johadgNtdLk40S272YSsrBm2AzmEJ9JdlunJj4u+Fmhlp8\n0jsSB9cewkKr43AdoAf4K8iMmtNulh+9rbKOLrl8/eOqCclP80+Vs296c3lT\n2+16lNyRtOJUMUo4Lz/jIQPAR56ufcj8dJOkdt+8qc3mT76YRmkv1Tv/9a4s\nPXgBuQPRxdlto15fycVVpYAJeOVXO3uwhFRiI7td+0u8HVU+9IfOqKSJsQp5\nPyfMMsp8atlKjtrkUhWzmvg9d5+OT5p7m/kP0K6cdj02qBQsbnqbr4ZE6MMc\n7ZM/\r\n=P3w+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDleZjRyCY7zCFA9Mvv2ieboM2hD79jI1ncZxuI/w7FNAIgcLsWCiKxsdL3itbkf3EQjhVYt/aKOZSMzPMfGyYKlVw="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.6_1602225844506_0.755379645939197"},"_hasShrinkwrap":false},"1.7.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"fe91b215f0f7adab2bbe7d3087fbe51ca4c9fef7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.7","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-gErPTp8phR33cqKs9J32Hy94FeD54Tgub19e+54LoIJT86wdu5kqNW4jwDUxtE+rFd5/C8/Xje9bSRjVZR8T+w==","shasum":"fce8ec094d9ad66bc30727abec62b4ff49112182","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.7.tgz","fileCount":44,"unpackedSize":839777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfghL0CRA9TVsSAnZWagAAbzYP/iMbDpvdkCcH0EDLJdT1\nxbjeSbC5AEh2kL07XV3Gq1iTmme/6TwuVb9csxGmFoHpaKJ95Dzfdl3Geabf\nPocCeVoUkCb3lY4gwwKL2OXL/K9apQNij8c4CO+BFfszw8PBr3Dyq4wM9HPc\nU8gWNswsOgErflreJdu7IV1ACGiqSnCsmOubGOcqMH7DiX2XkK4wooZ8Ec8H\nhbD4We6iXjxwnV91TCJ8PDt80cU6LCDdxth3mb1ZRThOxemXmNaJNT7QWFqs\n9rv3h4KarC+diM5hX8KEBruKe0Fd4HbbRg9xACAEP8Pb8jqXHGhJFWSf0pFJ\nDQve4UssPeXdRq6e+Vr+pP48n+EH7FEeNL819+DCj6wzWTlrh/rMr6+Haa6p\n2vYw9dDdhsFGUIVFVE/kZ4N1cwvNU7YWRioBe6fZt0w9TDpAs7AsG0OYwedj\nIR52xGzK8gxY4Xn5vtlbJfCrLqk2LVNO2cslm4lB1CIs7SPGPr/o0+6QOBGM\n428I8ltvnaAoahvTBkKgc0p8p27QfcWuoziErbV4VIR7gSI7cZ18lBzt0ygp\n8LMyjrHJEiDzowJTZhUDHfKu8/aNbB1KN24WnFB1CDC5zLCmSnG+7xOQapfy\nUoKQBxyjDJQwnECsR6Pb/1m4SdfG1Mu/4NhfrtQuuoFn5QoMLRWxczVra5gO\nMSaw\r\n=72p7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyilMui4s8FSBp8504inGO2iFsr3A4wzRdy1LnTnfuGAiEAyoblcIlJlDqbKmRzjPVY3TF4HpyzrgAQpQgsJhE9osU="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.7_1602360051727_0.44207527409725755"},"_hasShrinkwrap":false},"1.7.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"94460a1ff93deca6503f7d2723bf072c9c2f64d7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.8","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-uKljsR2ODK2rHhzExfLY6CUxc/hdjNY2SU3o7VztCX/oV35/NyBohy6CqCktfTWKai7m69hHrcBG2NQ4n61atw==","shasum":"2d99ca686878d0c151a6ac1e34d36cff45008fce","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.8.tgz","fileCount":44,"unpackedSize":840355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhjDkCRA9TVsSAnZWagAA/wQP/3WxZOxQ+/DEfZ5aa5QB\nD7ekF4cf5O0BqsTxOFzOJOXOPeKwKmrzq0Q1dEzaveK0tDQw+/Pae+X7/VAy\nBwqxbHqmwlMeo13NgsDLuhS60Ih/WOibYgYNGG8UYda3VDyHp5bH9HJGu8c6\nfWjKa9buQqpRjinPkhVreAfdUfRtL2LAiJRK8sF4FLA56YUmZeNTuPqWrJif\nKVunViZgGXpvLOZn26u9JYCVrSXbiQ10SbNx74o+MjKP60j6+5hPMQCTVO54\nDFz4TT8sno8uGRfe7c8bG/9E0G7uIadK9nIo9nwEE+ot65yHHgKyQb3bg9kU\nbpVUqnL3+dVb3jAldYljTYBUM+TvvSRRAXrDysKp5lfMNF6aLmrdZlc1gV6E\nPf+eeUoFPazzoYKVFFj/Au15xboe3uowIqD88sYmxeWv6UCd7xKyrTEZ6hc1\noTO9zPK3Xd9m+MDel0tdgmbNXOIg4nFBDHdW25pmxk8tIbD/xbo6dXDn9+eF\n6YvDP1JVniDyObV2fuVIYZxSN4A65ncbxIZAdESxw41296rVVz2LiI0vKN68\nQZIrXnmV/zFUk7ryBDbLyvVIBTfeZtbSLfhP5t+dweBm5riM0XlTiTOcCY/n\n34eS6RgwNTWAqZhzISTN5wId+00Qn1GvvYZ3PiOkG+Oj4Z4jiL0IYgoJhfUk\nrdW6\r\n=vaLZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/r5abWnXseNb+cYbuT0jKUVPBov13lkVqn6JQzDkUbAiB15nH24obD9WIbotFaTNjqMFrQhE4JH9TiG8rJUFziOA=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.8_1602629860103_0.3930032629213649"},"_hasShrinkwrap":false},"1.7.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"cab0f4ab734abb09051f0e0920dc6a82fdafdbbf","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.9","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-GPL2S6BWy3A24HeifaVVaxS+Lhqg6UZty7qkRNw3xhcBqbdExNQsE0xzE+pgUmBBtPmRHl2Y0B4qF9D0NuASJA==","shasum":"ff41eea152add93bd05a60a6956aea6e387c2509","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.9.tgz","fileCount":44,"unpackedSize":840853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh/RGCRA9TVsSAnZWagAAwxEP/i8Fblf8p4rrd84zkRy6\nuUVeAPWzL2agWT6T8FvD34Si1zSP067wUBSBpWnaLDlhEgWs6szHM/fyIkYO\nK4lndz0PhfjaMLk05PFWSpnUNHWYqVwj/mGcUp0SIJQVjJb+fgCDARGM6Xo8\nTpTmMKstTwUv1Mx0U7aOHv4gV/nsxyGq/YGAUoGjGWfUSfvEzxkbrjed200l\n544c9RrZSXRbzcl+19BVMT3rr+FAAQt8itjYCscP6xMOkKAaQOcftGCoNK6l\nS40irqANrsmpu5k/DSO421pxAy01J9WZqMwtb0zGlpdsmuRO3C10sVM43jDJ\nwq0g+y2stJjG7XMje9KeZnGfbH5GABAN0PsWxvbvRuTrPyyc7/JhJ0yyWAOs\nAvxy2qhsCmWXYDm/M6OpSpeM1+dpLtJbtG+OyUKDBr4FFvjT2SfpQZudZj7w\nuVVn+OZ7pSDjCI2J3pDws5ZXUwWuIdQLaR/cG2eCM+8x+UzTB8UTwv9wfJlq\ngrBbswrbQOmgbb92BEVDfM1af0u/PX7O9cImLAos+7vKixL03UwGypT8idEQ\n6mAS8bZpYjoroqhajhNLD8dRrBI3RjT0ODciEPN9Ez0VO3H+OseO8zbxAbtA\n8n3M6n+gdufcU70cS5n0iEj5b+X6sT9b6Pl5DlBpw6ykWZs5+z06FoivPQzn\nFus1\r\n=EKyT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9Qrfct3MqG++cMMKrrcJ7k0ccj+7NMEdaUXxmd0QqnAiEA4A91kfs5dMuEUtPjJT4FKdRXuT3LE7JNHKqrbfViwzA="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.9_1602745413307_0.4109236744397229"},"_hasShrinkwrap":false},"1.7.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"51867cfc0e3c26e5213c3930f1bb2d8bb043b870","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.10","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-8lP+hZ14EVsqWRfsI+FaT9kvnWDaP31O5cUTXdYjinL2rLDmg81uqWhBgMJQ/OWMqhh4WEF4uOIMgn3yPdxgBQ==","shasum":"4f4cf3363a03bd84a50c4afbf31526618cc5a7c0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.10.tgz","fileCount":44,"unpackedSize":843161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiI7OCRA9TVsSAnZWagAAhukQAJbyJfVA7cqfxJmi/8TX\nJcdTfg/wVOQVXBeat5GxTrF5od8q0mzkO/QikLHnQpv3RkoZUk6UUSO7KkAS\nMe2gvt+RAEoG2PA30vdoxe28y5totXE0zM8ueDayRNPnoEpXA4XV5tvPVxqW\nKFk2DS63L8n1RXhfwp/4EJlvE7KsC6mhW5+C+Yj7hNus30UJDoWRP8YvSsE8\nRN9+urEX5hd8wdY+Yu7kVZQC2/GgGPh0igExGNVWwE0jbaDEvtyhyxX104zD\nsS+gbpKHUt7eMsaK+2/c7EBMI11cPBA6gvq7ZHz+99DW6aFOMRjxwrX+skHf\nHrG7zO7oMGzt/Crhw6SbKeBhBB/ldEjXu4G//Aq5UlGc+Sd2PQGSUcFi6KxO\npfBrXep+e0SlGmMVYZV8ikg2jcaiWC3ktPESs+m+EIWSmB7LVamsUypju97N\nWTNhi+BUTrOpsCCIq3pQMkdgsRr05Je+IqVwlVqTOKR2hIEb5K/bAIt0XUFV\n30CAU6RbHUYqgwi2CS1FtTEd5Cx2PKxlRR3YIqJ08I/1qHwjE286ubwbVeDN\nvx3p7IpeL/dVMMjsy2NSBj6keWozyGJW/iNsDC/cbcdpewszxE5q7bLhY+0i\nQXlSx/xO62LxOnW7EvTP8aB4OqbhBOEN7fzb7PTCgFe2Q9x+mbcIFQkdsxNm\n/WXk\r\n=3X5j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBV5xgu1ugTewg/Uh5vAUzbcbyNG/AJN/OMlOMKMpYaqAiEAulXvJr+CBOq9opOVvbHmDDu/ew62/080nT5Qa6X5LHU="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.10_1602784973545_0.40031865581287307"},"_hasShrinkwrap":false},"1.7.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"832a2b78a43c1fc28af5174daa9bd3631b64b807","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.11","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-zCPtGJ2MZsH8vO0vMEuGOwokSuL4lzvjb/C1xY7eFSeSEWynvtX3iv3yeJb+iEIvUmw/Ns1eqFzHo1irPRPwmw==","shasum":"5b119d8cdce63fe3d908bcae472ed82552c063d8","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.11.tgz","fileCount":44,"unpackedSize":842940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiJ0XCRA9TVsSAnZWagAA/G0P/1eP+jHbyFWV3bfwteNA\n+ab+4eGcaCKleQkfWeh3R2T6uUG/hYUvY7LysbIK3ZtWGH79buR+mU+bzQ9k\nlB6LDYoqPH+LcJLkaRZ/ojse04H08nLZoRzvsIibFErTgEkUNKMidsss6DAC\nSmctQJ6VOkNk3/9ldGZhzFJR55BZbWzJ4GvNQRI9+tuJaXLXawTw3W1oqXti\nSPKgtUBtTdOWZQo2+Rl5D09MFVk1M0thVTZLPc4cKNfAKyI6CnRqWllvAbYm\nEXEK24Z/vKO/1Z4qH1NQ0ZHMRrb49vp+CVZfDoq8iVyrgbQriyfDcGWf1R83\nvDMeXpiZbz7oSc39RU7DNzC0vWkp5+ZJ0H4hEDRIRyT6CZh57KymMkgy27sD\nULTOuGW50miajnQ0ik/LCRopjwqwFLt75/oCd5Tpmi8l9LASBNIRJQI62h03\nnZjxQCbmVnHRDoixG2zRB3euhUxSzjKzzo6wCkvPzjE5rxstVphuMfloLkmr\n/XApQSiJALTtRYEPYTmVmjJLkaITewDpZ6tRgpgviIkNAOPab9wj7Z5csQJW\nvnlOlTd+V49doY0SxihoMGbbXif4MPE2eM8mQczlJGKJYLShoIGRtyWZEaLu\nwj/75/rMpDuXb94T94tcujUit1Xk1F7MOv1YAUO9DbbrfUdLaWn1WuUVmM7D\nmcAJ\r\n=HghT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJvMy75+8rW6jjZzmynAzKhd9flNZT6oLXM7AAFdyYigIhALR7l+9SsF68waflNqVerN+Oej8qMQ4uSfvWmAgU+vKA"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.11_1602788630993_0.953152853748392"},"_hasShrinkwrap":false},"1.7.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"cb97e256bbfdc71e65dba07097210f7d3b70b0fd","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.12","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-MCZBnVYhOvcwXhBxGeQoYt1B9uAyYG5Mcr1/bFCqJi9EZNFLV0VtJ2Qc75EMqzq7HKmpu3AYHpWVQOMYavu7ow==","shasum":"3052ff81541edd6a29f64c9bd67a30ad51b4a2bb","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.12.tgz","fileCount":44,"unpackedSize":843792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiUnYCRA9TVsSAnZWagAAMhEP/22nzi+4kcKPpzZGKDZy\ncqp+/AvXy0jtD69GAL/K4rA+7ECzdME9GNIYC0RI1pGXB2hvLyTg/xzGKInv\nL7qrRw4fSk9TT5Vc4/9fJhArok/00OJWeciMiXTbSMcjRJekhAuyPBVlGXa1\n2rmRFZjVQIdIQC6c160cH9IBdYLTmhFCeJ0MoE3nhoZsKjosG1HOF2rTYzm4\nQDKuQehJFElgNJtPX1lGh32/Y1QE7TrNVXOv7kIVFHtxy6hu2QOoAdrKGkte\n5EAKWm9X/SQtWmsRkY/zBvkGdGltXJ8SXNHZk1WyVnZusqPg7c+FeitAS2lM\nvvlAbnRDv2kZRsZ7MMsMN0CMrKNeIVVevPp/tqNqX4l9r4SfssBXXki5jmVM\nS6zVIkKD5SlxncPo8KqWUfZlm+b+x8pDXdszF2POhmIJKhrKCrJBjo8p71BH\nqkibJOYQekY/iCiSIOG1IpYJZGG2JL4xcnsye0DxcPhGTy+0uhnd4qlpMWal\nfT7i3EivDF+uSiUU/wMKSfQ9qlaY9k21MHPw7QsAVEDX8HdquAdPV58DcKVe\nQMn5zDRiBlRNTVNBpHRdWjBvP1+JJbK3H9yzrp1d0KuV0kKSvMQtkSwu36qr\ng/oGNiHZvvpRHsHnRODdPpbzuofA7itHFbfuGW9JuXgZNfKWg6dUk5taP0J2\n0SAS\r\n=5r4O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkf9fjvdNPfPT+4zLrGHPtel8l2/sLYc209qRr7WPQaAiAiWzV0ULELqB6yDr6CN2LKPO5OD1Jo34uK+X3cND6HbQ=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.12_1602832855883_0.47977366082100503"},"_hasShrinkwrap":false},"1.7.0-alpha.13":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.13","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"19e9a699f0c1c044a007e853e0a4f8de96f7d38a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.13","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-pL9wzY0LGqnDp6Ghe5x+xoY9gFF7MIERc07fccz9GXEnDJ/nJJMXbfG0Pw5fhxeNygx3sBxcPRapQxV4eG0ITg==","shasum":"940b011ffdd0bca9152981fbea959efe5ecb3afc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.13.tgz","fileCount":48,"unpackedSize":852249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjJmrCRA9TVsSAnZWagAAlHUP/0KFpnUMe4npFK8HA0gh\nyMZwGh0I0p91JjFnmKVqRovMmbR3C7FC2W3zSSNsACayn4AMzaofgqd4rqyI\n8cG0FxBLZDlAk8oMCxVwiZXqVwEM6YleiMdPo3vdSvPPH/KI7LWmdWbtirVl\nDq2HkSmTWWFqTXcrDTgI8b2w4WJpH9JeXspmwLSHMTHu7OJugMKq+ehyiLNx\n7tnAw7cnpdD1IM8GE2qZsq2HG5Ws+LWzlS41dNjIG06Ch6j+JjKUluC9exF8\nrJ+++8k7znqa6H/5M2jTXJ22c1UypAl7YjC7kJp19AlSKWXR9tgj1dZsXl/N\nPtlNRd28jqifSqsvp+gxnVTuM2KVetm0LOpuK9G2gdX+6J2N3xepML3n8aZG\nYuNFYVjXoFlVRTPwIcoOAuqeYKNxTOoE+92Uysog+NmHL/6Gdcm3bLmWU9pX\ntJd/xRzQGyNvmk4NUrUP1H0uGetl9C+RbNv81ywMusY5n35+z56yUfUgMO6H\nd0rhbAA3EGyvsdHoDeuGbXE2qFMV4/3wZeJt3SleGVPvRLs1jmuU1RH/Ehyz\nCpmGE8Yubn2mxgtaNqbiB3Qn95jkcc+4VyRwK6GtdDuZ8kCiO6NBpoRqsf2c\nlY1kI+v76ORTulk9ktp6sxHBbcv3MZV1+xy70KPhR/mTBW29PG9XzEDZIhxL\nBjDI\r\n=v6L4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqT8MDAGknBAaE0tw/eZmbVu8IDCNfKzax0MMZU3tEcAiEA+U/Or3N++7bY5FsRFflxBqmO4ewxdOQwNcFNiJ0G21g="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.13_1603049898487_0.6667695107235312"},"_hasShrinkwrap":false},"1.7.0-alpha.14":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.14","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"bc2032027ac79223297a9a7f0ae60744846cdd5d","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.14","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-j7rxSh2DRD9UwxMxgqBMcWHVP3gV+GSan+fHDrHWj/TEk5JZAhV6dD3OBnAzZld6SQ0t7ziENf53vB7YW1q4og==","shasum":"f93733afd5ddc358f1013ac79e510b78a3a982d6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.14.tgz","fileCount":48,"unpackedSize":853388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjnCBCRA9TVsSAnZWagAAIC8P/1uXRaDxPevTnclBy4hU\n+OhyhKNWUGkbR+ww0KLMcDhjgl/Gt+rh6R3mUAWU9HUSAMS6wOqC5SKypZlL\nmEGBheiQ/wA6MBx1Y8bV17KVKVK2mEr9FoKuBTCbmRT7Y6RX8cyCywU52VZw\nc86SrYTsrvFMZhy89kcmD5+iSHleAbu7MBb3BsKm9/ptZ2g+MrE1jKdbkBXg\nhFCeMqIzmpXoufU1SBht9lCIuWXFnfsrDuxE41DEdvLk/xJzCtmt0F8Ibfr1\n4GR9j7vRCvzrx2O32OyOOgjJUoiAfwfgeAI3+qge/2Z2U80OCM9EVNbO6mEA\nKio5Pyngg+LIb2KPE7mfcm7SDM0qh6LyelS38HFANwr3ny+YBlkaAzPjkS0y\n/UU9s/P2vD1eQjbaEhJHdSSU+gQ+17O5g53zKFUZsiHa/s111W0c5Q+70+84\nDmmuu0PTPqj3BxK/ylHY2FcJxRy4tn5H8TCM2TqtnmuvWomRE+lbce00P7Rk\n+C+0ObRVEgFBD1DNcmX+ECcb7spg8KPkLTJ4qlROHTOIiBf7W77C9HjCQOgh\nAPsCM2j3o6c+OrM+YJ0Nq5sqxTLhjzAa5Dwcy4G5/Z+s+XpSVwRZT7i2kuYh\nrT2T6vV7Fib0ZTjxqiqrbAkMo97UQu16BVeuVQHG+SUmF76ijKDScwlEW/Wy\nxE0j\r\n=htd2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlFqmclUr1ATlNq6B93MplzLiR6y7t5rDQZv9ezlBZQAiEApfkR+0YLuiNoECmLqKVVpJfufQ2RP2u4WjJGlWDqAoQ="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.14_1603170432637_0.5119962643913176"},"_hasShrinkwrap":false},"1.7.0-alpha.15":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.15","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"32ad497042d1e2ba8b5b1ad754617bb7205c7a28","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.15","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-x8EJI8Ns5GlhHpIC5EPrchxzx4AdhKv+4W9dd1lLGefmJI/1981ZuH4XElE/sq3PN1m3yR8CP4mZP2ovq8sLjg==","shasum":"263ae26e4dd7f4e5a22a9158decd9f04871b2ab0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.15.tgz","fileCount":48,"unpackedSize":854493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj12yCRA9TVsSAnZWagAAsx0QAIYWt4de8rJTXibNwVPR\n1u7ZgvClBDMbnicyj/zJrzet3wTR8GpOLb1oDn6mbLagsN+ANgOoOHDI+r0V\nw6/OkAQZKSTGRc1m0y8VAI6YUxtOLIhee/a2zGmy/Jw2pNImXGaiyLGyUCzl\nNh1ZkwS9ePl7pkUWrMwo3SFgIfKnipzy2U/yWm3gBC7j1wU09tuNqGjx4KNY\nNDTK3lcr6OjX8jf7jPQB73X9IcFKUfPYE3MFFfeUHkjmMJN+YQqfYcvh6WRG\n+NBgbYZ5PAtJSB4a30VrAFFvBit//uMuvjMXIjiKWF1Z3mTyRcOL9WANGkcT\nGX9ssgkS9cGX5dl4FGLdOv7HMRjkYtlLeu3O+qAfjiTVaSd7c8JB3MUhpail\n9raCLYnsI8/QPObABYhTE1aKIkhNaQCWlmmRHOgFrOM99CFZsmhRk++dYXel\nlWkV5vvzW20W/H3FzQyqE8xOXJPRMK9scyfKry3lri85P/4vhHI1A/+58/H9\nmLdqV3smwkEQquA40Tl6uuqBseEI/mHG+jh6Pn7pLFxn5rZX7M7WA7+PolNi\nSUtsbPV31qum1kUklEypOYRKZFLwRj4Dpb/FCwkV0VgFUQK25xz1+3k+5QTh\nRqRmy7Bvd3uGcAkMXeQO9atLf5Q1s7jHhc2GuCHswWfA3p77epBAsu9/+0bP\n/uXZ\r\n=bnGo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTmggebd42HDuFGl9MeB8mRtZBMfpwM+ShfUysrynD2QIhAIkZnOr9v0N0jDMRzqr1PNUbJWgUbnBWZ+QhEf79HxB4"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.15_1603231153817_0.3067322016336571"},"_hasShrinkwrap":false},"1.7.0-alpha.16":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.16","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"d10cc5c7e97d4eddcc8425dfda3fdecd03fdea44","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.16","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-ZiHMgzIdfspoorvsGKlEkZ+rWv9Bh/HPihHiBY602DpQrs/4C/0BWtwi7PEU2CJtoSgo6I490n+P/XuMKno77g==","shasum":"44a227d8154fe2024a3a870d38f9f09a4c2068f6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.16.tgz","fileCount":48,"unpackedSize":855266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj8ITCRA9TVsSAnZWagAAuXMP/iMP3ADwn5oEC3FN3OLu\nnWyViVt6Iin9rXbVXDl0b0O1rzXkx/4kGo4NMvaPbmSnxQaE6GoHSqAytM7p\n2T65s8D+XvMg2No1dU8cDswd/gjQNbE6ECAzxoCdZyfwIueimz9acabbXG1W\nH0Ce5wmJ2I6S4kfC4hxpMntFsSMGDrA92ix5tVUadrSV8mRfrAtcxxbU9CuV\ngNeY03ISbKo4ej3+kk33jn6xtWSBr5Wc/sexQZLZ7ckYa3w5rrxeow5LHqxC\neC7sMbdhsfmWHfeYUUTzGOev8nz0okQYkTx7hWEE+HTNSCfzQl2PUB0InpoP\nfPR4HKbSN2559QjocbfRVpb9X+Wgp1UQk1MOEW8O6KLhazaK/pEtaXAAYly+\nMVRFyPOfqWNfs3zOiSlvK8/UhQnjeSo3Ezk2HwB7rIPRgUCv503uwmmo0drq\nkJxP/hTHsv/LPoHWu6unZ9IJm3GzSzxtviUUvVPUF0YsfZ+Pk2Wc2xTpti+S\nPnW+qwxDR+ICdtnA6gn9YOPX6fcGBcl/Xq09poXYHG3wIG0q6lGnGBi3OwOt\n/XQHUKzwpGR9PVmJBCKhgdoDn88o8d6RJK7bJ7jUlNV/1PHlUAufb0LOt4pH\n/5U9j6eNE39/tOd6+ZJ/RlnFQZFZ1GJEnD6nSLlQ3Hy9KCgV5+rtRSrt0JhX\nf7ff\r\n=NOhI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFUX1JhdXXNBHykuZqVl+p0UfZe3wR2cq9JM/oum9wVQIgQANZozcbLOKVYJrFNRHf4rO3nCUt0IpwhZw4gjJyQ0I="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.16_1603256850906_0.5512110555302816"},"_hasShrinkwrap":false},"1.7.0-alpha.17":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.17","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"ef2d596d5a39af2009f48b39742c2aa269f103c0","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.17","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-Lp+90IzLIm89czmZ6SSnoRQlOf/yJrIpHh3nWmXD2oqNke7OIcuZXL0hoUh+VjM8AAZ1B4t5DfryasW6AzSg7A==","shasum":"dd1b6a355a92ab3a03fa57ffafa40eddde94f3aa","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.17.tgz","fileCount":48,"unpackedSize":856187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkIgHCRA9TVsSAnZWagAAlqIP/3Bb3+T4b2505WQczOgD\nRnOO37B5c/Q9FbJQn5W3/vgqSBscuAtT+V4pu1B7oD30mEacVgEzaOvvwVkV\nVoTLiGWQYvbZVep56YqDBMbjkB0Vb5wn/QmADXbrbfcNiJn/aHYeL0FBzKLx\n5QWKqPz9WxSD8AR2t/1xRh5/5dmbbyWLUp/wAL87FKxIt/WaLts/9Dx3LuRz\n6A3rf9sLYp+0832hQXM3XLp8s3ab7VPzi+tORi3cHGOXqiHuTOKmvV7nnZQ6\nhJ42eaT7T3u4JbXzoalOnZkzL+oxlgzqeWm1C1FShAG+B73UuJQTQouw3Tjw\nwdII9qxB4CO47zFcaHW/0bamLl6sCHd8U6vA7BpkNeWzmqTvo60OgvMw+n5C\n3Vfk4oGChYn1Nz8/ZCYXQqE5Pdh8tSdPdNhMnMQ0MUu4eUsTrlc18w1g6epH\nrnBMFCc3a6nspNoxvM/xTFaP1drCOTyaZwLNyoegD/Im2Dwt7aJXKv062Wlc\naOz7Ibp1I9M6gKFXM8OiRjKv2g/9kvI6qPhqPAr29iBCHksbfH2LhaHHjDoH\nl38qlvxyhFVwpv9wjEUIMOvTE/nrzZEdkvSx72+DyGynxD2HBpB9Zqn76zeZ\nyTjC+f7b7mfWGA22Z3nG2WRf9/1ifQ0swSwwps70oJI6cXuxInboQRss1XJF\n1J43\r\n=JbJ3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6QqsySXS1yiGmmf3Dz+gXqIU+/BTxix6CRSMbE6cPHAiEAm0DTLXLhLYiTKyZ46HppVdfZFgvh0s3+NItw9ARsj5k="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.17_1603307526547_0.8287798280447172"},"_hasShrinkwrap":false},"1.7.0-alpha.18":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.18","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"src/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"103fa32e121b8695dc325bfff71d2ae98afc40c9","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.18","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-yvUHaYfV1ZGpmHX8qUEdI8vtXbOko69poJesJOWVFWW7wfoGdwJqPLk9kCcDjHOtVrJ2jempM6qvm9HUcj+mcA==","shasum":"addf8136bcd983413a8a48e4a7d4b6794c2668c5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.18.tgz","fileCount":50,"unpackedSize":859677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkN8dCRA9TVsSAnZWagAAxPEP/Ra/P4I3o8R8NgCq9BAZ\nZJbQseECpal3IQhxBnuMJ1zU63Z4rqmGNrzunxDp/oqeja3f1s3KogE5fQTl\nCC6/dvuI4+FR7Dri4v2RydTJ5ysEUUcAM7BJo3zDqCMD8dVZTXHAp030f7Yg\n2NjPEyzPON0zBR19kcP2LTuu5IUJGIV91R9Aeaiu0Z+Zk4vqn6HpvX0AACIN\n+fbEbDAjLBI0BjA7JvBrtmjn/a43zBEXdHakoe/45h+MadSIRcUHIjQGBKa+\nsZbiCOJxvL5tD1eFOZCORc9ZYqeipnGDva5+UfZCfA4b8tiijUu8Oj+ReKbt\no70oksF8HnQTSdGyTD+QyEkra5i39oE+mMLALyv/cC5WrOtDHAnshsm3DOte\n14GLp8y9u0oo6VsVXGFvW8b01mrYPA3asYkAIz83zizEP5di1eVtl6vSWR0L\n2NGK+SQmtsHWhqRVszapi00IQRcAlgpIzohvAHYP0srBCQ+gYGhsUw4Bc76h\ngphDeqSe0NCj4EzwQj6afEdVUp3Am/zeVkzmPN3Ev8GAJg4wscTjyYYiXsAw\npreKTG4R6f3Y3uEZhhPoEZC83yEX9W2g4aPw5fO02r5PM9e5ZKescpMQl0Cd\nCXV6MlRuP8STh0nSoItGNqg92OE3EbLmF/HfM5ifUapay5GU8J4WCmbX1NOs\ncGDY\r\n=Cfsj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvztVj5AC5P0LLdSqaIP9k5yWJ8XKLOTsidfcwojRDyAIgTq17HbcPXcZY2BK2yTvFDYG+p7CrQvnsvJDLuV6TN1c="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.18_1603329820591_0.1875119828684979"},"_hasShrinkwrap":false},"1.7.0-alpha.19":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.19","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"b1f614ab02ac466913b38458a091fa681be0a3e5","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.19","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-b9mXjRHWgFUXI9lxAelZ0j+tdeUp/QoANTi4LlKyFWv/RIFsXxdJ+Ey3eOWa4z2tbO/RdVd5La9Buw13mcRJGg==","shasum":"112c09bc7a2a60f0f5d2a5bd30db504019ec117b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.19.tgz","fileCount":50,"unpackedSize":860082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkP3rCRA9TVsSAnZWagAA2/kP/0d7/a3gpZYrrART5EOZ\ntaJR6+mHOI1YPmLSpyrU2Vm3cJMewvTf8KDBsqitW2/0SW256jC97wQQqy/3\nq6slh/AXBU89HCqexlEJ60tESBASzM4Iz8kZL7pxnZa7AtJtuieDN+4l7IF9\nN38vcx2O1KAO0aKRKu+/62twEzZdbJwUegMYobNy2mZte6W5NBqRZczhksFy\ngdGb8UIJ0SFo/AqNVAs+a5zy3bqOC4K/gDqdDZ9l8kXC+ql0AYbSoU7Sd5EG\n+3n9hLIKhV0UzJNLJv1EYO+57LBJjF1//owEbuHWv5rlEru17zHiPFKrveFO\n9W7CSEAtFDaYSP9UvdlGPk+UILLbGUFzVwT8z+Xw+T6H7ln/wT0+DilYWd63\n65Y5zILO7E0pFou89eRGAUZwvaxjCbUUo84TVez/VgDj53g0S19ctqwqKBWX\ny4MODyl1aARR3jffQQbmwMEUFcFyP9hmM0g76NVJaGgMYraM7UMnE4HMxahD\nYM7gxjOpJWzacbLwsXKvUqxfuPPAdDlamPlFU1RdPCcZt72jOi/3fHiNEszf\n0rUQ9+Wkfq8g/yKUKUaVWDRA10/hrcpwr8kG5vUewyz65jgY8w/s7ZLUNMUK\nh1ewUmeYpQ2AgYfv14YfsovjXIp6sOx5xKASc/uqcEzF+g4DbqLnRj/90cLr\ncElW\r\n=Zxcl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4LP/OGcKHEtNPDTTo0odI8zk5N0yHVTfPdKU8Jo3AfAIhALsCe3ewhTI5rjJ919IPJeaNacT4I55BWVHKxIhQcOtK"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.19_1603337707037_0.540560669773887"},"_hasShrinkwrap":false},"1.7.0-alpha.20":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.20","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"4525e75aaee642633db53bae1bde3290dcb19f4b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.20","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-KV1+j4QEt7HfW2kTWKPY+bdBlVHu/2XWU19g7pyx4qiblC25FTyf1g3DTRUNjErzn7V6MDhYhO/S3x526Th3Cg==","shasum":"c7cfcad8668605374503d09056b1abc116578b61","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.20.tgz","fileCount":50,"unpackedSize":860916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkkw3CRA9TVsSAnZWagAAOekP/0yW0aps7JjU3yDUOYog\nl5+gp6Bezgj2SScW7owZ+7This9ou5T56WCNk6Lua6OsyQ24038Y4MJSERfV\nMpykM9IKsqD7vhEazvtileR9oSQ0SAVoyOdr0h/NyWSgwR2TBY5/9r48RyTa\nHW7c2OBecI32/DCiCzVTwAhh0JQCor33kCbvxwaAxkaBG7AtDmV0HHoy+ilg\nT1ekJyY3Xmb/RRYi6JQca9CKobqIboPxi2o0oEmrOmREtFqWjxKobfyjlL8/\nASaGs8pN/kr07k8P3GIc16Ct7Qe54cBMeIHvmpo9kUayjPJIBnZExzdMbnw3\nF1sRCTZ4DCinYbTOMzHppd73MINjn6UJSbgZyYMT88jrnPrA4C6OWsNDWcPb\nPhG2PpQLY4i7piEBxJsYrtW++NHhr4rsr7ywNj7HvGgwxjxqBvdMMPEnkVKY\n+FcZV5vNPYlODwPwntgd+q1iatfYAgKK2rHbozq4gMa0wsJQ4QpWY3sLqjvr\nBWn4dwBFewOC27zpxCBvwBf5pr0xnT0MF28OE/c+Zx3h++lpe4Ua089eNevy\nuZG4q2RnZ63tNu4avbHThISLt5rue1Mn5X71dFig/8a+bWBL+9xiMXDfvMoJ\n3VDmT4yctoaQh+sZIMduff1LxYqUGh/zrzFERs5PKzG3lPRYkLwIv635zuf7\nq8TA\r\n=tdA3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyqydV7dCozHlEJ9knTpoDDunel+8anlTsGsQE6Ycm0AIhAJ+mxB1CuCGd37PhXBROizwSBHbqOGV4+KxJPWNXpHoe"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.20_1603423287345_0.7667159750084436"},"_hasShrinkwrap":false},"1.7.0-alpha.21":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.21","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"b47efffcff67c53977e6ab88eb02e6a2c4d1af66","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.21","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-gWg3DYmulWGvOFp5Ji5K3auMUwFmI+/+r+9wKhoFxb2T7rAQ86qcz0Ljjqr2evnYQcjvhq2igFOvBzJhIBiFTA==","shasum":"13f021ced775316fcd118edb7e570c702bc23855","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.21.tgz","fileCount":50,"unpackedSize":865212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmHZJCRA9TVsSAnZWagAAmJoP/jKWQTtiukIMHiPRcSsu\nZ4LFCxBenRzi7NOA8UZiOkQw4SeC2rDKHsiS3pBPT6Sh+pRRLQtYbJMtor4i\nmF2RU82YlQxKuf/IpDXxNgQ3zfvm+v1O1cAtk0H3NpWQ+f8YwUTCmcVQF+Bv\nQAaBZyyjgRWPRqJo9cGrbM9BHweTPw4J/MR+C2SOwDavhF0yTQalVDk5hXZ1\n5ZJMJZZTw44pHdje5JWlLGNlWOi//EW9SOewbSRa2wXgnugMgyAh7QEv5x3Y\nKBQJHpKiy34VcMTC+9b/hNvSJmDcaSMPOOQ8ULGOeTGWLaf+RjLTvAIEz/lo\nDPZOboy78PnpTn83gaXS4KeOFWx6c4gAUrn9++O++8AYdKiwi9ex9NesfyWb\n5AiWEftkAn5o95LL/GsvY54uyDFV5PLmPBXDX63GVOONxIagppdk0j+Mx4Pa\nVTRDhenkstmhdnmlUtMXScnBgn3MiaxX/wb8UCKwxtxZxPU+hIIY/LyjoBES\nQzs20nev+Bz0DyrTrqsupsi2FeCUu2C6/x0ZswpV0GWv1HnULjp8R3Hv/eAG\nVhHwGU6fCXr5S2vWxRuOngFuraOj7e4LHoWJrBLy8jRS08h5sCZusYTmsQEi\nm/DJkjCFLGVpU9W2eztBGmgU6x5hLWNXVpVik18CohCrLG4VjkvyeJ5fzrp+\n91Lu\r\n=Qw0c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnjszr5h4xqtqeWdBjGgrYNKUQ+WIDlgEzMTUhW9YPXQIgV4587DgxWxiCq10+sH7GOSXUUCALuvKNAW6XqZjZg7A="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.21_1603827272870_0.9347406770826931"},"_hasShrinkwrap":false},"1.7.0-alpha.22":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.22","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-gamma.8","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"9a2451c5f68a647c363ebf56ebc545e7a8759138","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.22","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-l/vGyw6L9INIjtFnvwvEI35KE9UjP6LvSNM1SkxC1+DEhi5UYAuLk1l9v00Zr5mEBcbBbMQwZ4PlwnciPriLiw==","shasum":"67fa4f8f18e94106426a8599f246ffae58afed84","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.22.tgz","fileCount":50,"unpackedSize":865515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdRaCRA9TVsSAnZWagAAPb4P/j9xPRNkS4rfP7GwTlhd\nubkUttrl5iPSdD4A1gMnceU4mpoaI5V4IN9wFgm65OLthfZ+N2NHl2iDsSge\n85OOXi8W0Uf2MSV/0busnT96Ie8YQYnCkXZW+LOQ7bx7k+d5mNNGV7JnUb1E\n0yWWw7Rv3Sk6YHqmqAWOWTvgnpaDe2uu+b7Vv7hlB1YrULhRGx45wAyi8ZEj\njizrHaceBW9OsBvvrDYsIe7eZgKF6Bl5rxfWCNQEB2HCj8XlfZoHwTKdVvLL\nNQLweu1CVo5qY6pj2IlyfGNXEQNQ0TXnAumRMFCncJmcgF8TuGZPzdiQ0lZ7\n9MQltK0BGqQvgMIAMBsnQLOEfOXKXdV6tpvZ3j5hKDzUAXnbiXKgS1V3syQz\nYrFSv5gT1Iid27PPl6Ywcn2FKcErtjgchq7ziylcwA2wOvmxZnixWwsjTysV\nOSTm3GQ/OYyb+fWJMONGKCD1DjaEVz7L7L93icN+wuMBOKO8lXAPy2fH4NMp\nPktdxhIIEcFjnzOUsgYk9u5WyG3oTFBnDHGxXGum4MFyqpBbBhbiIW/N0VYi\n/ZbB2qT/wtYOHXqzi2CT1vgMa6TvPoOO8+aSJ3MuqR+5FsJ+wUWMU1HiPtjk\nXud2pl4wIStoEsnwmlRxCpyo7N0T9fIHd1oBaGwryFmstv+hLFOyUEedqfGO\nEsES\r\n=K0YG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDC46g5CpTCaU9irkQfpwtihczOXdmpm9cFP1w6kFlQNgIhAPeZHSXt1VlAutMcDfO3q/U23yPfO8ii8rb0mf49AD62"}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.22_1603916889901_0.637603403622665"},"_hasShrinkwrap":false},"1.7.0-alpha.23":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0-alpha.23","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"beebc2625413a00100dc626a5b1a35f48c7adc8d","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.7.0-alpha.23","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-85sxfApLAHCrLIgwbQbls8qtt4yBZDsQwT0n7KDWDLSo4NDT9EiT7XieiXVWGxfrKwcWXXwV/MRUZxoNUlqzXw==","shasum":"d0513a110be471f8907d9254d0623e86a663cd00","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0-alpha.23.tgz","fileCount":50,"unpackedSize":854819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmgi5CRA9TVsSAnZWagAArcoQAIGQcSfORcweWAWjHfpP\nAmRJCaZnkybyyvKAHjr3BuG40BNCZqgRLmH6ECKqn3AeSmcAD1uaevRJMO0V\n/J2/2zg8N6pVI18PGHRifQqMvXuDo7dfcxlqLB9Y11sF8udDUbOldNuRTClg\nv3rehcOBud7zqWnGe616RNx0XjmuI8JqgpAOaYebZMUZn83gJ6Ohhwi+GYhA\nAV9+oh9F/whMJonw9+oWkmw50JHg+CIUQuO606MY9WQabo56QYGTkOoJvez5\nG0wd/Idw/y/bLzyNtt3kMV3il0gIokHB9VHfamtzyWEofjlMzk169D+JbxRC\njPynO6tANjss8Rrtkqby65+l42xo2+kljh7vl+O7oQig1DUk9ci555VCELY0\n2DnXF5wPI2xLBmvLQw4hJxs69kKIGR5Q3uzfCPRe+HOex+c+I1rSOID66Wlr\nPzFVWDs4pB/GtLayCMOMD0Vonos84Fhy71g9eAfsvuBmAUplGmyakyJhNHf6\nMudSFXX7ATTmZ9U2HChoBOpg9rTjrWzwjyV4ogWRQDAHF0AwkVWMENSRPCg9\ncI0Oq2xvrsGXYU+zanFO7qVIb/Bi6+cdbHh/YJTOcQQJqIEUbTEOeCj5ezPd\n4Ob+6dUPlNaO4XL++Vh1w/MNq5SJ4V3ma52/dkLUJ67AWiEX/WBRLvwx9mpi\nZ6hn\r\n=S9fK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8NRbgtqYKJkCFJf/stjP66RasOaaQRvjh/g8iIyyLwAiB//fbp/nOdMgIXgPYGFmeI8cO4jU/jp+KJuju5FzPqiQ=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0-alpha.23_1603930296563_0.0156290158487693"},"_hasShrinkwrap":false},"1.7.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"e252c2e15e2303246ece6430850085563c922a87","_id":"@sls-next/lambda-at-edge@1.7.0","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-mBdw4EgsNB9tE7pZ/YIhfkZbkbXzGjcaeJxGBKN0HsJwMJCNdJKnxPC2a29rvaovHnyFD6s91HVJ9V7b1GH/XQ==","shasum":"86b2a4642ef252eb8bb96b8931808d4c18d54082","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0.tgz","fileCount":50,"unpackedSize":855038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn6dFCRA9TVsSAnZWagAAvOMP/3HDFcdxI3WSOnS4AHKk\nDe1wTUxkQ4O7640qHVDg+OTVBo2LQ/qsb1kM0wPi7k/674ubYNryAs6Zv8XH\n52SaJWI52ugKL6VAjCMMSsQNLs/KbDkuXxJ3NMDrKdeZzX4VXOIO6U8hDuj+\nsJAt4Ag93GW9wLbuJGRS5UDLXBEg+H9P0QDQK70F93uq+SmhWiDrzWFCFEct\nU0Ss70FI7frd2wEN5aW6Z7Qb2k2N3lOKI5zgMfCcW2vX7NzSNru9K2KBwE5f\nXP/rJDVoCjvTsHwx0gfs4LXhC0Z76wUVPGDGhV54+t29b34kzmqqz5Hj4fY8\nvxU/bCUTfw4ofxL8/jQnwuLgHuzMWGXOAWekuxEAx0hwOFyPW+ffDBtRa1bB\nUu8Q69E9TrmypPcRyLPfMDlht5RePrE29dtcj30+phOZuvOdqoaEqhZevSck\nnzOXwxEK6XCzcVJCnYp57/gCrwWbpW8UaTxXRRhzxiSD13y6E63KrB6JLXps\nTx3Adom+ZN6+Y2S9k0b8jjDbcYQ7TzoWcZaxv6HPcUaAaIx/j/PID5oOJeKU\nAJeRstPA1gTN4s4l2U5pAfhoJKmB7w/uAw20wD2mAEGbxM31o09+JpJ0/BXh\noWWuBa7gb/W2maKSA/nvDZnG92I9yLK7t7P5sPqXMbX8mQcdnwu6YNpJxBk7\n5OiG\r\n=bbqc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBuiKLatYm/cT8Mn5xfNyWAYf5/ozQcdWCaKKYR3zKmAiAWgIua41SbbqxDZJ7hX5y02HnN471LXwM4heAVv93P1Q=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.0_1604298564516_0.27608321058867125"},"_hasShrinkwrap":false},"1.7.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.7.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"dff1d46671ae4f85f24e789ae9f681496824ae2b","_id":"@sls-next/lambda-at-edge@1.7.1-alpha.0","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-sOX4nckVvr0VUuHNs+wXaywwS1d4JcXJP7HYc1RQYNjwJP7KHkcLxfnb2FLOTYKtRdT5thOQBcH19LxLL3c06w==","shasum":"f93354ac30905dc5a2aa96fbd365b7bbada0aa82","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.1-alpha.0.tgz","fileCount":50,"unpackedSize":855636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoJMnCRA9TVsSAnZWagAABXgP/1FiSTpnpYWC2gUmfadq\nP8H18bhrGj+TuhtmaG4ZaIGOiYJx9F/vg+OXpz0GlmOATO7atGCUTejyC1NE\nAz9uLoI65mfzHmTAhjKrtOODgHiJQZlE8vmGY46U6Csz0tzfE6HQ039QUxpI\nxeBgvMfRpLjqTumK4cAUoRDbCL6HcfGQZr9PCnc+x9GDW5WAAoWHEBr9JyBu\ngXJu9J1uKMgkuMBKbj/MVVQZhls1PdOxw6B36TvHXJ78RwF2vdUEf9eMJQdR\nS7PeunYOWNd5dgs26KvX/wXYYCd5cz4FL0IsfUiXvvTqLluaHWfahDKFzgMv\n6zMDEsUoIvq/03TY+/GtFrDVTWNON9ep4PIEkJ2+91YWkO2g4yCpGNzRHhg9\njH52NcjohmLbv7wzSgbD4TAGX0R/ZN07rMnbBYHG5AxqQDCotkvUXW4tKjzp\nRvMOH3dUbWV+wrALNlrTkH6GsEiLE+RLCkOJS4ACQaEqQwzMa1gcsLtQDO09\nDKH67xsbj65oXZc/53Am4ORfPKJIHCkBO3CsKtN43zqK/FtlR5/4UGCEj6cy\n3sCyzNWBll3u4MwFr/gZtBREHuI6euvdHg2L7i1z6JiHRvhc55LLhgusPsLf\nRWexZESWrb7zqwXLVHbc/j/1o05bi8Ko0MDFGKosJfykwGW5EOszwIRsV2t0\n4Dc0\r\n=Fyvc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtVrlfS6eU+/liXmxxHAdASJz/nDTEzb27haCCdGvp3AiBROl5AWgBGu4r+3FKHatpRsPHfADvrskPnsowv7qNLnw=="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.7.1-alpha.0_1604358951097_0.11505545218334867"},"_hasShrinkwrap":false},"1.8.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"8fa67e260eeaecd5e8cc32786f824d1bc420f962","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.0","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-aoABRF9v+2QjroqdunaaGMLU/3Buooj53nV9IpkibVy7CgRWOfEc+efKCy//g72e6pmMJCyZNmw8yxRoci+A/w==","shasum":"98758bc19a62e354d1d95a70d9ded4fc8e9585af","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.0.tgz","fileCount":50,"unpackedSize":857876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoM9gCRA9TVsSAnZWagAAP20P/2QofQdSyg8dWz104DYV\nhCpPgpTlY0R5gC7qj2qkTidh2MHFMGwqYaBQ8NOKsfi9ddJvxUVjNhAsT7oO\nZRyNwOs7KH8ft6QudlUq0OCnFNYOU/ClybnSt6CRzDwexZWZL5/NX7WxPLYy\nFPRWOdvElOuA9p/jsWbdpLM7ANQkPGK2RzD845cVdfgsARQBDEWu/QMTvy4q\n6oj6YYfuqdqMIbeCcIWxtLQViu7NjMDLKmtdKqCI7K4PpAaGW2w/H9RjbV+i\n0ifInyacr0avwfiVoHz8NyVBxJ5EApIDRxUZUmRXvJxFiHwJHUKGQx2WbrzD\nT3yyrZ6a9coJDoKwnK4mlqzMv9F55VwHNOfqqVZbcxu2gkQYvy1/daIn7Qjt\noIhNk0FG4Rbpj5BTYzKh+u4MOXXc1LDlbCXPfqmKqo2qUxLrilR/3+7OQ0YW\nWCNNoy7bobZGcbic0umwLVHt5KfYOuwQ6kxLWwJvFyqBTraWFmnZ3Xj71svI\nRWrLx9lctI+/e/7uaXiQ8C7QPSS+Iu9KS2jj7FzDVQHSRpcw2zjDBS0mVCUv\n3U/jSkwkTq1R9J5OKoUH/P8FMvrUwUTmxRkIUk3wxKqxWwVQ2zgdfde98rw9\nRKi/uJSs63lJcdupUXm6cNPLbhTWvsfvYVJJ4aNXfbZhrW3ppBep/j+MLxML\n/abU\r\n=nIH0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa9cELpEs6UifzysoFftxQsCdeFdwOYheJqFlwCAk62gIgJ68CEM5LS2IzQ8E3G3Bskc5kDTCMk1oh42aAw7jXf+U="}]},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.0_1604374368295_0.0882029101847075"},"_hasShrinkwrap":false},"1.8.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"7f38b4f1ca528fe59f8676cc1a406cc2d0947303","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.1","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-35bQGyyNumQjzI1GhdfSSRJ1z4A6S75CID2oyJMHgvelDfHwHTRQfBSrRt+FdOVbguowy8hSuIueN+4xH742Lw==","shasum":"8b082b49119c629d2d8d1d18180c4dfef3c63772","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.1.tgz","fileCount":50,"unpackedSize":858543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoeXHCRA9TVsSAnZWagAAd0EP/3+we70dlGaZ7Kmq4xxC\nYMkn9+gEuZ8883Vf5jghgBxvc5EN7Yvq+LbzWSZuaF6aa0jTi1jCuF21+YUk\n6wMH0Bc7mFDQmtczprocJYsgT6FPtURm4/2Hffxg/lWLnbwmEjPxGUcLQmYM\nCMz2qnwvBy88UcUQqZGCR7hox1jxC9JRfPIkAlQds9Z01BgbxVvGoz5Pp49r\n/WvWTg/4Vn5AepF5EOEtYdABmDfbVcBa2+tmXqUFxTrPd/ne1FCOnAs0cpsS\n87Gq/CIAes+x37axU+od/pI0EmsW8KWj3J98FUX2no2ngwWZWnWzJeuOXc93\nL/5V4V+XfGU9zd3hVPdHH1WF0D58j4fsQJeResf1rhsi3d1cpCnbfixQnnbc\neVGwEUMTBcL0ii1DyVVgwx62+IuB6A3Sab+ou30sDW9PIo1N9niIftjofLqh\nQuP0/LqzIOAkRGUPzKdnYmbdl5q6G0qOJ20/yEZvu0Wpe9gBgYij7/T8Fi8B\nPwFObjFwRnfH68ru9VQCYR6srYTd2ZLZXeuIeGPPu88f8CXIwU2TmLRkbtN0\n/sHeU/Mj03jM4GC5G6i+Grii7fbR807alvC6BIM+mhIkYgAP/Px2Mj9uTApE\nznZb/iVEQJzRZaO3f1dWWy3lLX9tWKL3o+ooqFUiJjsMb7Zq687Me7SIoRWT\nlIVk\r\n=PnAs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzop+WC97gfxW7/7ig0UC6ET1uHxF+jw/YPLKPDza0CQIhAM2a2JvXglOld/pi34yud1CHbmoOAKFg5zN0FGFRuEEJ"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.1_1604445638965_0.7481549712422499"},"_hasShrinkwrap":false},"1.8.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"625f6bed672b8a6dfa8668a26296901be17049ef","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.2","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-gP1dR5dOo8SaS8BE1R2agnwLBxuvHutlNz+lPo37UFJFjkgIhknN0CYcQ+CHt9izYDh9HuBPltuObJMxYJfv0w==","shasum":"98e4bfa7a0cb3d9c0a8ff0adf4351b3defe92550","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.2.tgz","fileCount":102,"unpackedSize":962232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpaeyCRA9TVsSAnZWagAAiZ0P/ipE+YHF8UUabeBrwoN5\ng6cWwgKcqHA/6tK3octv2Q3cRs3JH72gQIczork2gc16XPchqJZE59oTS9Ss\nac2rrRIFroUHT1l3uLYvN2E3ldTNT7albyvtaSgkoZ4f/1SEsrr37gCNJsG7\n73WRGDHqLPO/TsJyurx1CpV+lm02Dy/PPtDQiyEb7v52/CzZLUcF/U4N3yoa\nSW0be9/Tc27o6aB5K+T37xW0+LOE6EaLLL4qa/IuuYwSW0bdzYM0rfWnHvdA\nFpvDevrosMoyxgQ9uuSuCzZcWSE2OrloCMpmq/yet0YLDsXD8T9gIBLGdzyG\nYiX+j/1frutoeb0C681U7avEseXRy8JvhcCe6w8GTGxOf6h/AXNkcrgs92lk\nIvOb5OMLebA3hPVu/OP1Oj+jbG+N97qwM/p5C/BwTTOpMnqtzE07TVT444bD\nXgYtpQGrydt80CKBA2een+jRvPCWCD/Bl9lqGcD2ntBZ2K2BI1zDHHIiAyPX\ny+Ud2mCBNYNdLTHGex0YMzyrVd6OZkAgcwZkybvcn96+upup0sicjm7i52tb\nGg8Br61HCnZy8MmXFg3BM9drbRkWLdYIiaYgPCbi08jfxPhCo1WLdYn+8tqd\nwoNkDV+0irnGbgp8OlLhBqcgL27X/pt+3myjnU+SaCamP4Q2KoB6dX7D0lqg\nPVxv\r\n=uJuz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEEMeMahAS+LBMHtvV4DjPXQxHBGhvBA9UMGESVT7CIwIhAJqyjPDDghPzdcixbzE2H2HyZjy3SLg9r2NAiYmDsaws"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.2_1604691889786_0.8347167027743922"},"_hasShrinkwrap":false},"1.8.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@zeit/node-file-trace":"^0.6.5","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"c064499886a1de03252f3f4b3ea8e8ebd72a0fb9","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.3","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-ST8u2usn7WoMPS74GnMc1MjRRs6RLbyh2MJqF68OdjBisBtRiSqNkfb23zo4QZXOBtjIyqdzg8PF8xwgXQEGrg==","shasum":"36917f0313c512afaf473fd7784a5418a3665fcc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.3.tgz","fileCount":102,"unpackedSize":962598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpvrdCRA9TVsSAnZWagAAiMcP/3JH506FMd2LB6g7AE2M\nDmWIZU8KbVa1zQD2CXs8rmJsY25qo/H0SHSTdOGZd3zS+OpUSUGRcIcc/gl6\nbUurFSgd3zmdZh6zVu0ovanjEhEl/g8dLUyd+K76iVF4NjkaWT0R618QgZC4\nZevGG27zKmB9jBjsqaE/iLEkJSuRYOvLbDtqvud4rLi+6FJhjwIkq3bbaG7X\nFeiu2xeMt3zxyOwArrujnwOCvjmrKFm2nNuE5VzgfG7YlyLy/oyaL/xMcm/P\nNSp5BjDxeZJHVBkPniKC62ZwB4utZ7k87gMTHEOItpYgqCyZ/MQmwUmepYMv\nm+qD9w2EYstm3ZtiKTKBv72bGvHpP7wueHtyMWlOeUc87+fU1YHGblfr6mUr\nJsVxDUL9/UGRWYeWljPL/mDeI46j7TluK1CTGGJEYMVEZ8Skrt6a7cEgG5Kg\nhxQq1EksQcxdJ2Up3oqsSVmJ5Ra4pegXtw88xbROKWKgBziYJbTL76wvZo7P\nR8ZxT0Lgkmwb8Wo1cyh6DomwzfcV+02HQxnLNcbxQo5oO3an6PE1Ryrs1PW+\nP0cEvIkphzK/C11ji4lnp2TzZ9yGh5JYuRSoPHnvd+Eu2PWm4fVRAQj928Vk\n6ezog4DfsdhKbNb2VQw9vWsbUaZnCXOPn5ge16qn9XJUysHqSJBX6nLt3BuB\nYG1L\r\n=ASbD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8NFpde/5EoLs8iOHlESh1xgJ6ZWN+59kKDbulINamyAIhAPLfL2b4aL/2fQs9w1kzVIK1rtb9sKFIIo9oViPdMpxK"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.3_1604778717107_0.43073820770200544"},"_hasShrinkwrap":false},"1.8.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"0aa3286bf5c09298959952ad5db493838ab3895e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.4","_nodeVersion":"12.16.2","_npmVersion":"lerna/3.22.1/node@v12.16.2+x64 (darwin)","dist":{"integrity":"sha512-T9S8fCoosSl7DC6rHCx+kAhbWB25Vw6BGZs2IQN1wJWMLU/N4MSQDrxTYQuJvmwiM4EiDVHoHtKyBOvDykY2uA==","shasum":"5200f284e3fe9c07e5c547c2455bc7afa4d20c0f","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.4.tgz","fileCount":46,"unpackedSize":854095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrHXwCRA9TVsSAnZWagAAf20P+wRrSieeRBWLeO89S5y5\ng6zNdbpeQzgaJgqxngxpHri9t52sKRsu7olBDJiAhcWqGtcTGtxdylp59n+I\n07ihC7RcPXO9Uxk7Ro6KX11UJlGuTl78gUT9DxUTUEAi4b5QjZzxSG9rqXzb\nnmFG1s2JpM5vC4Q5UCDHW1K+T3IPm5iNEG2kQb+4A+uyveUyqoGyjH0e4mMN\nKqW5LmN2KGWqL7yf7OUfv5vIbc1Bu6W8/DOJcg4POoX7F9I22+kKNhVx1F/5\n/4cB2pa+nLKDo6/atVTP8sE0RR9cPQk4cmy9URyl1RDMjWhkLISgYhejV7VV\n1zDlwQSYZsL+ngPEaO++QRSbhvTi4VB/KnIGTNAW1x4w6KvkgbUCk7+pO7MY\nVNyo8RqoOxyxAGpiTLpb+mvn2bTlUB3xUTCC9o5/3HprkCvshYDcZtaYHlB+\nlcxucXPe0c6S1GCCmEkm7338Mwmkqpp8z/C8o+9MYYbYnAUDoUgX+5L1Sd1H\nnh9YgL25m9G0t5bRmNjAcUDjBeG5yXBLe4w6tGdA3o84AMif6GNCL9qD0UIA\n0a6SvLAHfmGJmoV4V20NMT+w05spUkuyTikoEQ8YjYP6dnCY6n7jj/2LE6YI\nx1XBVN/f6sYtC3KTGhEamgTj5pGs9+90N0Gr/ugC6B5VphLtJhyw8jcZPzk4\nAClQ\r\n=0NLW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSO/ytabemHnuuC67/cU/gCXMIgbVqF1xJ6PAKDOO0MAiEAzf5uqhxDdUp3QGlmffIpw835C9LDsbUFnYwdN93UH/A="}]},"_npmUser":{"name":"danielconde","email":"danielconde9@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.4_1605137903512_0.16800800805688487"},"_hasShrinkwrap":false},"1.8.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"0c912709da09ac95ffcdd46f60e922c4ef6b5fc2","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.5","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-wIv7f6jNuFdHZU8V3xk9aKbReoXyDC9pwpA0AjrZEHPun+AC0B97G6gV93oB+hXMDiGMJ1r2AKcQ7HPWHNtUvA==","shasum":"c2e7eb5101a640c56df30f809de6d22c5b7f46e1","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.5.tgz","fileCount":113,"unpackedSize":988632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrkIcCRA9TVsSAnZWagAAtHAP+QHolT/1elmHGAdn7ZJd\nRqI51P84ywXNjroNnHKMRHSOx2QpcasRCF+di23Gz/yFUreL6LEmF+z8ZZFX\nOvP4wWN/Cdoqt1WXD1eTOJHkjkYdJuzc3ChSVrTSNQdNXe+msew+b5GGA8w9\nT2hdGMiFgZ+Xbrkl01F0Lrrvr2xjavjh7zTFI0vfnx9EFYQxcpMfeEEsYZtC\ng4BQnuy+AHyefeA1DoXs3OT5gueW03dG5jW22eM5aELUpL4bbWH4aPxqZYu7\nRKJgj0XO4veNqF0PThx5wQu4t8IfjiNQ5NvFYNzZHJh/ctbw8o7f8cnh9IBx\nPE1Yrg8/lsVlS8+1Nh/Zcm2AbaUic8VxaBldChfSiMbT6oACuS7oVQ85pIzE\nDIMeOTu68WIxcpcGzyyzfR/jM2sortwBNU8fvJbHXWOAYo0T2Des9sR9Nymx\nyW/3aqhqu1oqKQw5qfwvCklKfmGpH8KC9wc/I3P0R4in6e9+9RnPh6AO/B09\nQ+/zGF6yDuom9pgEld/2lGf7L7dfADowJz9jgc8qF68qNWsDdTQUkpLVJjUg\nwJyTCgPBJlCpzBt9aT0a3ShJH6MUvVtmUbVDbAnuGWwLnlBpnvYl4SKvq5EZ\n/t+oo6LmeWqewDV9j7ST0BB1Q+Qsd6Hnip02TPlTsMeqFZ3zWVks24kzfIyG\nC1j+\r\n=hwv6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFayhjnWoF/O47cvuaVuf6qLg8NwQ8nP1yC4c8PX5C8GAiEA9vFbxmKOPVi9ahDk7VZP+CrCwcLG/E9bitoKvflQvXc="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.5_1605255707571_0.09634288142722025"},"_hasShrinkwrap":false},"1.8.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"03614880d1a004efeb9f3441ce1bb6cea58e99d5","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.6","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-Hfxbb0jf+VY5sorGw1weg3m0lzJjjJJAPcS1X5I314RaJ6IhNkuXmEHq9B55m6t5wajueuACQ1iBStfTO3koSA==","shasum":"08769bb54495e67f51a4702109dce9c4b60d156d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.6.tgz","fileCount":113,"unpackedSize":990773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftDhtCRA9TVsSAnZWagAAzM4P/3PHl9Ljfhd7lQtbfpiM\nnAUS7nh7r/WSg3lIMU7nI1sk/Oro5SMO4X0D4KVNGuHci8PevHK4IyKub3jt\nSFZ8JX/yts/C1U1aMvwHY5RE4QEc/fS/kQU96y4TeVJJQk3e1UcOwp95Riun\nJe6p6xgH6vvUQblgqPr4kGZzKAjDZLJ1r502QOIA6Y6kiI0vpLGZzZ+g1F+3\nLUFtqoBQrduD7rC/2DtwepL+d2ZK5pq2HMKoZx9bcJx5NW34nkgG/sedfx3F\nd5Lo+ThZmx14/EXKZeXbTzG8+9vOEIs0ZurAtAeGaYmAbYtQ07Cvsj9bFc5A\nkh1Bb4Kx32Aco1RBE5Pq/LZYaHfbV9sTFswkEKQYKoJ4/a/v0VYCKj31s526\nK4FyoUFGZW+ttm5e4MpRgoJ1+u4PFXd6JcRWU62V9qSz5FrBqZUnRS+r3X+O\n2mN4QhplmYPOU6zn24LnV8ss6tyNBXLRBzpHMpu5Cj8pMlsVSSFMXh4g9LDK\nDZ+8Zt22n0OmVPxBGnQGD4mvSseBUzZt3cPTGdLsoY23rInhKevYiKhwCw0A\nD91uK/v8i78eR+Nzq+fSYPVqRmLjvVjgZtZsa/+u3Zps/XYAOVlfJ/hDurpi\nHA2aIL2PyK6sMcGjslBZDnOTnCLGsdYUkCLS9IS0tWEyQH8RufgaWBxJl8QD\niZK3\r\n=niHr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHumtNFsqgvWRWXQA4bxA4nRaduh+ySPNGSv/bLEHbDAiBc6y3rnhHarvXEHcsdpepWf3S3mpHTKIsiKQwybUNgug=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.6_1605646445310_0.01720305698665392"},"_hasShrinkwrap":false},"1.8.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","klaw":"^3.0.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","path-to-regexp":"^6.1.0"},"gitHead":"39b735634f969846258c6c50091c5c809f37e0d4","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.7","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-Rp1g9RkudmTmmI1u98LM9+5E6xqZiOiLB3QhI/ucWh0Wi8i+6A622zA/A/PSMwNwFD/H7tipnaa+EWpnN09TDg==","shasum":"146b2fffc4f0947c8c1162bdaeb42f2839f17e31","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.7.tgz","fileCount":113,"unpackedSize":992472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvH0lCRA9TVsSAnZWagAACDoP/iGp3yPeNUNL+ceEY77Z\nDGnG1uEERPUnvH0aKphopnkFBU/eTFPn0n9G21ouaLNcdvFC2ie8ijy2skJM\ny0JzWr9UJaDYhiwWP0YuBh+0AZJC73XdVpb5j13ZtrAnHHuKDouGC527An8B\nFnOEa9kO4fHD5xZiMlg8rwD8xinZ9C1Z+Gbd/sBCzbolbSxpkvT1BBFS2Eva\nk3lRAKpXlG5xdjD0EVNzFRwyjPN23x1uiOPxsa+KQC+ABeM2CQDYdTtyY+3Q\nieH0im0pNFFFfuYlkXHrt7JQtKq4riDbKxT2yX/5Laj0q55W8fCkU2hPh1tG\nJn7hPbIyBnOUoXC7dmVNq5g5fYDm6rj6IJ26o7UXQKrgLscfFfu6P8fVlJCA\n/Zao50qxgBrL16Wme4+1/CjFX1i/K1X3ANPMiqvdg2j7vFuwuoZKY78enXAD\nHCFNKsZddl4vkl2ifuOXZI3JnkZ4p2NrIm0b++u6kDQNAv9Kql2Xg6JEwRaV\nQcSEiV2beKYkNOcKT/+0hy1DziKA2DCzOiT42LjNBpfSJdYJ20eDbh89pVNx\n5tJqiORE4+G/umtqaDtM6JqhVATqE65PUgYGhwsnAAgnq8HYuG6x1cj1ORRf\neTRN59fY/p9yaCR9xE6xekhqru5gq+tgixcEsqmfLYv1j8+ShL3RJwLuSr//\nA+qg\r\n=IlrC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDC9nhWik4UpSxFU/c3gaoF/hfvvafXx6vTzZ4zGzH/FAiAkpo+TJMJNx6FSl4TpSvZJopuODAUzc/OQTd9uwofvEw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.7_1606188325208_0.5200965393958132"},"_hasShrinkwrap":false},"1.8.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","path-to-regexp":"^6.1.0"},"gitHead":"2427517e093a7f938d22600771b86a6a36c40666","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.8","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-1n3+UqYDoQZNC72V13xdgyHCrhttKZTYZK5d1Dbrzg68+pO9de/gqoS7NZ+64NbT+T6+Cgvpgrh9d3Qe9fEAew==","shasum":"a214a8c9d2c7e4280c1c51b627e91374788ec805","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.8.tgz","fileCount":113,"unpackedSize":993030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv2JlCRA9TVsSAnZWagAArocP/39EyD5W4QKy2V3UZhnv\nLtL2TvRq2uOwdX2a0VowPCpy3rHsaOrDdVoPUjwBrXSz40V/dGImNcswWWej\nWHJ3KUvnJ7gMq69PU4Ml7HrPaW/yMY20w7nAd15ODcsPf/QGA5zX/YISs8YQ\npibnqpu9lAW9T4PsPyjNTdq+y2YZEIA8IJjKwgBM/tvirFBXp4h2eZnGUaKr\nnLM8Mo6C+Ia6o1XDyDLIs+yyfpC3tSZlpjXRLIdwqSl27L/dVPrOmupLzUF3\nIDdzBWrzocZG7p/Y1YwkuCq2nN5I5IBqkPMyxg8G4q1YYVXfYrbt2LA+SB/U\nDJXHNB1XjbUQjJUoF5Jgt2eFOdhlOMmK8l436SS0jsjHOaDYkymYgh9w8QMs\nNu1NM6CDsoABzpHJ6pK0magGqQ8hsULiPxFbWEfmDguiwGBua6H95vz6I37t\nU0qzf7jl3b6rwdQjVvKzRgkSppBuPWHgW0zdVr9t6wYL1/2Y2uSkSjqw7wyV\n+XYDwbZpLaA/tSA1suMnsigvCs53K+ThHYnaOYymmGsZbmWhxmUjR3R+eS6r\npltYRqW/j+ZDTfqHRjExkgKPK4useTPJGspeLtiQMNRmuhYEsBaEb2NbYqk8\nA5JnQ7NGdXMrUR7nISb+muxfNk9zz/fvi8nlPiD55ueg7Y7cIx3QAFLs2Z5I\nRtda\r\n=RRHN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbZo4+kxkSh5Kv5nCMM0TaaJi0sN6HjTAo1DePI7vNhAiBJ1cQVEp/aThNohj4+x/CpHne8xK5sTCRzusUoj+D7Dw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.8_1606378084859_0.9170571431750523"},"_hasShrinkwrap":false},"1.8.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","path-to-regexp":"^6.1.0"},"gitHead":"178de25a6b5f0804fafe5a911e3505bc2e940639","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.9","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-ml91wgmTeAnGgYWuKJUVaQdS6cLQxvAKaH3uUG1zMen97GJQrBgFsaOnhx5s3EIiPJXwjtPym+0e5ptxHFvncw==","shasum":"6fe66be154710aec9da417546e58c9437a4a9460","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.9.tgz","fileCount":115,"unpackedSize":1006864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxHfpCRA9TVsSAnZWagAAtpkP/0egOD7xXMV2pn1MayXl\nChknkQbj+Iq6lfCa5fLylrFhbDjRXIeXKcSwwWEyVsRoL/qg7VHZ+IiiVFnN\nQm53s70bFNMQsvkonjcyeUNWJy14G9IXNgNONMvWr+BU2UXSalCDv7X1noBt\nATlusRvMGiYqBkFmw/HJ0xq/iDk+AoPFUwptHRhf3jfvgk8kz0/R/z90xn2M\nQAIPFvFk7Fu8vcvz6eRQ63jyXACVqK6dwC9B+Jcfh4M8NVwYAlbwICbq+VEK\n7bh/kH8TUKQGrUxAzhSHg6iNWZrmhlc7zFWwFehjqEU5bRdQl2D1g9fYv0DU\n4N9A/zEahoWb4hwTxr86xRih8mjsw2DDXlnUu654Vd2ni+WuZ7M7qkjNAt/W\nx2vQZkfG/YmiWHrBbgbtr2FnlVnzXiuD7yzBKnkr7CNC5LdvSO1B+zStSSSm\nvC6OQ7Br24XiytIb8fRc9qLBSCuFKjJfHDO6hytC/FWbRob+0/68DCs90jRt\nc5b6UMa4BE7j+MU+iyVrWOWx8aPDuSxAZHc1Jmk7EzizbhfgVxLNze/8Z6WA\nSF4Bjy6kDRQThIiHB6ph0+RAVvNTp7eBaUvykaRKwacEdEWbANFR0k3ePol7\nxyTUWMmDApP05W0HCYc87c6XLmrFrzM26R4iPKagfNKk4UuFtu97Z2Gy1mv/\ndRR7\r\n=9Juo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI8WUfL6TFZ8Du7Pn9nXUYCrVdSKcR0L6AzfX3QkJKegIhAJP0wCxPcI6kagoo+k2/1LOpfIoe6YsJsOfuRNtrXyPH"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.9_1606711272692_0.8522407825871436"},"_hasShrinkwrap":false},"1.8.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","build":"rollup --config && tsc -p tsconfig.build.json"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/path-to-regexp":"^1.7.0","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","ts-loader":"^7.0.5","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","path-to-regexp":"^6.1.0"},"gitHead":"7d0f4eb24e12e94d0c1778b8ecc1827240582d67","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.10","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-SYTUMDMfsUgz6URvvLrBx+U9bod9VLCMHkdrUq7dbb2Vgu/mhsF9mGickTgiRmFjJD+lN7+/I8oxwYAF5dKVWw==","shasum":"8c4290141ae8c0acdc6d54680088f7ddd6f7e2da","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.10.tgz","fileCount":778,"unpackedSize":4438007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyzVTCRA9TVsSAnZWagAAreYP/A6rHxUA1UgT0rdG7RIw\ny6EbIxlXChpDyKUfWPyRvIv2RIAmExpAahgqnDyJbKLAAigw3xrM2ef1EVg2\nXhDTzJQT0XxKZPzUoxxsVZn7ibkqVBHx6MlDMMNiRzXnc6jB3tNaQWbm+RNa\njQZtTHcU+8lU2wEpJwkySKCVociwq2GcjQmJTQ2cnuFKBCliSCEhrRWxYakO\na+XDctIS4u5MR23ZF5Kamvknga92GpQdrVyF63BG5hM1mqlcl9omGqIL4u+q\ntija45ezaq0+FiXd/y/TSVXmUBF136ZC1UBTkAbXuhQAOVdcMYSEQ6AQtwCO\n721VODEK8YTtsOjo/HrqvGYsI82YYNh9Lv54uCeHjVw82PmXZ3wR91I+EpqP\n8lJlgwiLleGm1U7q2iuhnDK1l1EYDknPpMVTiPSnBBJJuJ+JgAklEPyp0EVz\nxcMkOikZxjqgHcfcgcxNhTP3PV28Ri9SikkyDYrGBIt1mRa3Mg/6xreEBbZ1\nVrvTGrpHFP3DXceyHF8DWDyID9GEEz8faa5wMcf8CxWEmPOZycyJIL6AsfYS\nn0BSP1YJhb6QLXRCg3tEHZrwN6lTzyQqwaY4dxsSwZzoMBskJTZuz3yjEDzh\ne3ULXfxqjphQdYSajRqTSi7PqGTqfbA/HOUL9Vtd2ttceEXqC6zvEctBZsOD\nezrk\r\n=IsZ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq08SFNA4N3Vzgpll4D5hf0NCzFy3OC1TdojHSzrbcTwIgH900lhf1PfXoWkN6k0LgD5gXVci3AbBYx+1X+0+T9Ac="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.10_1607152978800_0.9269636385995599"},"_hasShrinkwrap":false},"1.8.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"01e8bd45d965ea8fd056638eaff2039765b846e3","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.11","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-HIoWhcAtwzYPD+KGLUdxAK13W6oWmgP77VlZuG45uHHNYzBvAGAkVpAqKM90wtyuVbPZBhAkt3Ccz4guvX12OA==","shasum":"316ba05d0d70fcca4d8876bb3fd853415ddb27a7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.11.tgz","fileCount":778,"unpackedSize":4441124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzvcTCRA9TVsSAnZWagAAJoQP/3LTFbkOQlxfgIcTSC+H\nkVGs+SfqrjgQ3dW0MFmPyufX24nUeLULf66qiZFjLdr7lHrW/YvgBrOB6NNZ\nFyGUFpn+gInZTNF7Kf00T2uDAtlYqmqpNxNXuRk9ZM54XJl7CBfDT9HWOnC+\nNgXXNKiJMadZBgC3KctUqbWR7L/f2V3Sc7THg1p8GvPvBFBCQ6sxk5SlCMEA\nQnFAHtdOvoUEKV0AeZtxdTdg1rfLaio3YsZqysGGRJhXPMQD+QhgDLnT9Ta/\nboIbGC/bh6nHqqEkldCtujXA5G2LwqkF35PBI7bPj7RDnWGA9jLZ6VyGtHGy\nwENUPNq4Bc1ekhS3yaLufpuVOIgL75hvDbV5fMuBCJaElzRh2HOIa/mXJPtN\ndu7zKkruk6LCyYXe310ubRCNCGcIlr8Z0Qgoxo13tmSHp7KY79XnPclJAIHA\nzHBcefojMBlgXKlPM7Dqx791mYiSimIXExHDyOIMuFolqW+qC83aU4b5drQ5\nizxzE7WzaKgcFYjwMD28I65RfHGvH/qNyVXRpffLQxDUUuprawwkH5ndUZre\nsyUfKHFaawFvmBqsQ2CBathZmHHrT03CuhMJTtqLhVnRC1pfx8DRizhQxVnQ\n7y6UdyCo0HCNjL9ofZLvPg/5ae4GpbaZQg9RoBLOvbnz/jca+IOs1RvI9ZRh\nNKtB\r\n=aICj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICl3PrIl+ZBesTFS89DXepkt5XKF0MJTArWPe25ZWQebAiA/DL6iTXUDYTd8jYnmNFPK94BNX3qYwPe0wqXpX7YbAQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.11_1607399187247_0.9657719641469935"},"_hasShrinkwrap":false},"1.8.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"617fe09fa86abfd254eeedbb629dbb16d1ffcc2d","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.12","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-kl5W/GuFQy9kQ5coQIwpCE0RDyYA96tJsM9uPVth6UsKWdjIg3Il8eB8V1P20c3xoErixJ6PwzRqVgZh/aJ+bw==","shasum":"517ed75c12e5ee8cc21aa2bbb33c1e1540c60a8e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.12.tgz","fileCount":778,"unpackedSize":4441614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz+3jCRA9TVsSAnZWagAAE4oQAIhhUgxPDqLw3GOfTBGx\n5N+/2dHKkngrHYYdJmPVHeFDQKDF6nx3OOwd+VEkMljMK5oUlyJMbkosL38I\n6lR9e0/RbDjWpAqT1aNOOmLxqr4Ze3GZC3Y7zBBSLrB/K0JuNVUko60pQQeU\nzLxDnNo9TTGY4JwHD/VeaQSK6zZr+iZAl6o+rr4WqezjvLZLdppZ4dbSb5iG\n6h3X9t8IsU+20JNlEoOX4vzw8xyjJUgAVgfBDnKU+PTarspzJP3n1+57S5zg\n9DVd4StSpB8YlSj8xkazJDv+wZdswNMHkleV1th//2MJkaMdMtpOlMVdkCRd\nGxOCfZMGGwlotLaicLCqlpSudnHc4hEWXQOVVpb9Z4AP2xItLQddZYqHcmeE\nsq7oefKwkyp81x8jSHSXJwFrrhk+GZIEErfJ5l/BU/XzTnweLcTajEKsCOYN\ndpxM8/RIgV7SHgbThzmPX+tQc5UJnAq5Hi/ZriCt9SlGEMzUjipI/ANu5hKM\nj62sztWDxW3A5TO8i9Ny8tSXseSNhFq1pCfoArHMVSXxZNSLz/pRV/6mjrGQ\n9WCSqW7UlVltgJx8U5VwqMKGDCvXIYEu0a7zgmO80dZeJnJaqbCdBcVCe6l0\n2au7PFHgNwCP1CccByb79uPESQ3JS1EPnOl+JvmWcB48erqbrVFNjbA4pDwX\nM4fs\r\n=/ox3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVOR5TObZFdZS5Ji/ZxmzFJ3muiQcnYgakbVHA7GPiMAiEAkksaXazc5I7BbVuCQJ6AhgkgxoRQNSQ7K3NY8QIbMNo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.12_1607462370686_0.8106189278926224"},"_hasShrinkwrap":false},"1.8.0-alpha.13":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.13","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"1165081f7f08486917769f08d5f2a31260b92d58","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.13","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-vdJYFPei3+D7BPryxHR9GlrEEnBYb3KLlhFMblPKNZ2gRjL/66epeNWKDo77MIBW1XZE8iL/k9ZZVaR8PRg1/Q==","shasum":"8c3959a65cd1721b05bd5c0e6143b1c05e222b59","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.13.tgz","fileCount":1452,"unpackedSize":31220106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz/mBCRA9TVsSAnZWagAA4cUP/RMWcoeQHQSNE9qausrI\n7SXY6jb1z4xAMwka5eFVNHPGVWdobEMNm4N1LBUEgNs9glYs1dqZDXW4AP1G\nnEBrJADq0KXm+xHsCFrFfKpiylBrmcpzk4ogSUcnMhm4SL6CUASSoW4tWEAC\n9mHs+A18IdaX1GGFQ9/zjVlNzC443D9M1RJf0MrHyJ4C2pY9cUBA7AF5yLuR\nuzuWSO7jie25KLL6ui9uFY0mWcZaqH8BnC8YuQYnNeDa55gXbwuYL8m4evD1\nGJNXMINPM4Da46SBLEbxhl+ObFjUCO231WxlTNPIui1p6wGjRQDD5CTvSpcm\nLanPAyQAtEYGTrsASbk+35mUCMDoQ7T0x+BKJr0gAoMC4ZCUCop3kPgYY46R\n9KBj7+T0GC4n/5H4uzkrqNhMFD3/8KroPDJmPFkZJ/Bwu9krvnaBK17ri3Z0\nXQrgoNRJ7JKaoe9U/TnFWyQMlFAmZIMPcGETwM/2TPwKmAPtmARMJYBgAEVk\nc/nd0tZyav9b8ohCkHsSUYIm8QCvrd3/9+vf4lQ+FKq3864AcKq8REQ1OdVZ\nt4WK5g5lDtVVxmBT4Zgn2mrCgv8Pk/egbkAtWMQnR1UDH78Jd3E7hr6bNDot\nue0WmQiV5wR9nRMhz0ls/ScKyMt0yUlrOIZUtVNW054UWX0lzNQBVhXyJI9c\n8GlC\r\n=ItTO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAcgbf5EIJIcABIuWEfebBLRDpWUFxxYGHQdnmYsQwOQIhAOwMbWxI+KRqsfOoqKNxXMYjR7cnG27ZiUpXSjS0on/8"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.13_1607465344514_0.13603862726513372"},"_hasShrinkwrap":false},"1.8.0-alpha.14":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.14","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"89ebd0f1b6ed880b046b9dc9af00f7ad50477343","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.14","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-k57MXj/Uy+i10Mwqq2Gd6OrTVDVxmoiQWv/8oI2h1FJWgECOuwVS8J49pjW2hoN9KvTTIGvvMx1Dew+1KgAEpg==","shasum":"a1a538d9b067742a6e79b39664c91587702e08be","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.14.tgz","fileCount":1454,"unpackedSize":31506323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz/7VCRA9TVsSAnZWagAA37UQAItyXiskXHoCHbNbPUY2\nvJEmFEGmPWy4OD2ELO4+PmJ4HiG5qLBHKJgMBAYKgFCoHan8oTZ69BQMb8ZN\nulr0q/mQJkTKWDBDLUkjflFJHsZf2iqV+Mo+DOSCAPl+dfnGfjqrrjmDOg83\nUV54spZ9t3eg+SOeKGG19eP6RIqLt5DXtUUzPejAJgi+fLryMgm5txVfVDuM\n83b3b3akfNQIjUHnFKS9V4UZag9K39eFRVbB0GNxNcAGs/gq2dQ/hHSJmoxB\nfadePIlcEfq2ELv5aasqJk6+8mhpdq36yUlhKF2xjK5LWgEndYMjPa2X05eC\nbkOueA6iG5AoNLMfVZSXcetQ1UJe0RZTxq1Edhn4m3xULvddiR0fXNDIlZzz\nUMrgdmbIpr8VLG3jBtoT+sYuFghea7zBSQzARX4HtzF3u6tDukrLoqVHooeb\nMSrrSLpm0fbPMoLJHbf/7yZtLsAW8DwAcl9F6vwKXRkrNnhkavDxHZUTEi8x\niq98yNGOB59pLpABbI4l0ERlX432u9ADBOiqNRM4eP9TAZ9zVd9YhTzuS5zk\n27civsjQnCbOjkQ3fMu/uORVjmGAFZ/N1oyAwtacOhll+VAUkGf6uJWa3v6L\nvx0a401OMA8bp9htxyqxZi/gOhH84rraNFndAkJSB6RyG5LgL+9hvvhT8Hgm\nYPit\r\n=WBfj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQKHE8K12rxnE/3w6jla1hrMVhDn6hWsZQb6GN/WDuwAiEA8/iUPqDhi83/gpgc9UiXjodnVSp+YlGvhCLsHTpmnM4="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.14_1607466707956_0.939479132971226"},"_hasShrinkwrap":false},"1.8.0-alpha.15":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.15","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"b4cda58e8fe6f1c0dcfa356e20a5f41a63f677bf","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.15","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-V3rE7kHZKe69ep4f66C12PcK6UV7MxVcYFegFRAyPneBqa2WIudX36QwLYcmaFPnU+Ms6yTr2XQ5jo0uIRbw4g==","shasum":"303b748bd554f975481de1e9c3fe8dd7ad104f96","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.15.tgz","fileCount":1454,"unpackedSize":31634773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0YCkCRA9TVsSAnZWagAARDsP/2VsejzIw5QXbPCXhA1W\nbrjbnO7gyTVkZNq1H0+T8XzYFZzCr5eCDpvEVoTvDPCt/XpRT5fJInkhTfaj\nAn/QP6R1hODw39l1jSqQkutX4nUnYbiSqDTq1ha/0ez+3/WDrhL+TJjwbXvm\nQT8grVRPkxurarNUTunLB7vhHYBsL0lakLIGcqN11MGcm91C3XhCxznHQPQn\nIBtzQxwHXT5EnmqajGaQ119z4vOQiwEEY7OboYAiQrw3FRlDKA9c9RYmazQs\nvwka5z5YraX80UvoSVdRZy605oOFzvRwYQ4jVeesAW9HrfKmwzaPnNvZpqBJ\neNCShrsaQKczVeTsctPDNp0aFEDgHommrCcLZyaBcnjV+S8miWK4I4Ne5ByD\nES1vNEL8qAokR6L2D/Hjtq2D4f7LU657289zg9Fn2QK6hE8rF2uP4ReiExME\nBjXvifVSJgdqSocqr0OONcXzd3AUd+0FObSQmkMzAk9jLrKe6azSzhwF18/x\nc0npYA3Drvycv0O9Crp2ORG92RgYli3ON20ulKTNPHm9ja+N5veqyRrwJlAy\ncvcAM0GSar4Pzf5j2LgOsW2h2O/wzkml/0ofpBZl+nJJApTIsSqprhHStEz2\n9hKngnILHGcLeROsGowLTwOAdPFWhYgs19BrZl4dCilquj00Ztn1WiLVBHVJ\n9vwu\r\n=+2it\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbe4pnURSrubjai3kG01OcOQu366dfX/qwsHPB1AOexAiEA02Qih0kQPIgvd8iD85VVc1KlXz1lgCSiMQOCL5fMeQY="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.15_1607565475965_0.28158426286717786"},"_hasShrinkwrap":false},"1.8.0-alpha.16":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.16","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"a72a1d3469b86b958f55a20edb2cf05fa3f5e2b1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.16","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-UO1V5KDqL/cl6zLRHvPy461Q6K017jwhxSyg65qSU5RJBw9NOaa4B874nd6pNhVG+KLHfks1uMlkzFdIphhjzQ==","shasum":"4e0c41f04d6015d3317fa6273465d265bb6a71b2","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.16.tgz","fileCount":1454,"unpackedSize":31635019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf07s9CRA9TVsSAnZWagAAKgsP/jXdsul9s2euWtAeP6eE\nzagM5yze6Y2ARLYIBRMPfgI10dso00o7yJTEvjraQmOSqLpAKOLWH4QBhPlu\nX79FlK57+HXf3GZ96tOUJtoraZ9I8kVLNBMZAylFP0yIDwdtrTH6T4Tzw4Je\nvRhZkGYnU5ADZA+V6oc0JMQoHR9unPeWmcF5V70bM6PFah8vzbnBt6DuAIpP\nNSxYnwiSsCfcR1h+Gj4itkzc7fr/aeidlIISPZq8VjRj3ehXs+Wmd+/FA/2T\nsjE4KpX2ePS6jz/K2FYJmUB+9W7knyA6Pt5P+DYOHGAEuob5JJB72hQ4d7zP\nBrBb0PCekgQ1RcYyNGDkeWkJ3ZZ1yv6es0fgkLS2ikxBChbVuyQqYjNde1Sq\njDFgY1LaOfutJ+vc7DBrdednwViu2YzBqRfhib6bDcemCcBWG5ry7rXaGyDl\nFfJplIgU8P+AIl7djWg1BSU6W5ZjwCZXGQZvVNApCDu5V+bm+Iv5kajacXQz\nMpnVRQ138cn/MsgJMtu/KCq/fE5dvsZyyHEEQysYdtvMgdDpYr+dRxTuzn1c\nQPyWxiM884XkjoG1xY/zt39juL+GhS1OxRDaBz21cM1RUBqRGJw5xK45zt1M\nvuS/Mf6t7oerVp58lAXo6DasGhPOYil4mTENHp8Vuw5iGMJ32N5hoQg/speA\nou8o\r\n=21rD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGU/85XSeqih0ClaQHyGAHWL5kYGm4R7z3frwuuy+OeqAiAaGkKxDD3zZcqwpb6jEpigQab+SQXuD2uQCehCW1cRpQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielphang","email":"dphang12@gmail.com"},{"name":"danielconde","email":"danielconde9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.16_1607711548242_0.26578400452218154"},"_hasShrinkwrap":false},"1.8.0-alpha.17":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.17","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"e04b4b458e3cf737fae2331bdd4c01c400218372","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.17","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-op1Ja9vpsGEjf6Jr4BjrHVU7rBqDG6JOUqndKnigXMrBnXRUIYWI3VIOQFHSwfdtTk2tMG0+AnXb4RvL7ve4ow==","shasum":"ddd146993f89cf3009cd22ced178a80cfdbdc088","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.17.tgz","fileCount":1454,"unpackedSize":31639062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9WrICRA9TVsSAnZWagAAN0MP/0Ixf8dXxGxqwZMn+pkA\nc/cElM2OwzCm2ItDc4RUqZa9JMTDpc2eYt5ijFLCJD8Lx6SEv3dgsRpfzg9i\nfzxY1CK9qqTgBqE5VRWm3u949WjONQHt4E9lv3DYdJFVv4i9D6WwQCKTN8X5\nN20lOohkQCKpV5Gj8mIbCAIK99NeumI8jwfz4JFWvu+16ryEDJjmN1OJmmk5\n/nAcnOAHP5GSx0D4+WBEKAamm4N5l/VuCFQt+QYtyvTMu2WNCJusRY86gwAF\n+bosKPzcnDc5T5qmQYUWkRtw2KRXEfUOdidxpL/A0rDDuYwCyh/ykxIkDg63\n8drMVbUhrbVUhaIvciW29gW5wu3353RAYf+eIuM2rL8qIQBcGB50mLEwdnr8\ndNkw8UvcqDDHyJo4qunPeriFrdxrBDtcWJ6IuMGi2AMEQMz/3+u2s0ra6A4+\nhwhICk/d6w7qKixmYehCDGLf6GjnLzfzHMW5bNQROJeF1qbZTrNicuNz0bC7\naLK+4AIX/KeoTS1MtW9H+EiLSwri0rsifcDLbpzUN3eLHDkfoEbxTRPXNjDc\n5dh7MVbSOGWpHZWqk5gpfxNUAQZp8ZIljq6CepYYmR1QAG2ttqnebIGIuGQz\n8BEZZaZ+5T4svCnm83yNciDIm3svCm77PdVjsCegaHQmkpHCr875Bsdia3gg\ni3jK\r\n=CJ4+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7x3SZVPTfs6Zk52Y1X+xSnBM/kHIUs0e49SfX6rx1igIhAJLqjaM+TpukAO0oIesC8pDMKbqIIOE7IEIiFDUO8XTE"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.17_1609919173883_0.24147964497585406"},"_hasShrinkwrap":false},"1.8.0-alpha.18":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.18","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"5f6bdc682cd76eaa8d188350bc69f2bb8d58a04e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.18","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-UoZX/EeAQ2VDNzZ5DzDo+l54EBtvfNyRCSlO7hl5FvT4pFCQHFBxcexpyFJ9P9bA0rbqbO9ZQAXygbt2/n1OCA==","shasum":"6dff8137c6a30de34563a9fe448004cd4fbfbd0e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.18.tgz","fileCount":1454,"unpackedSize":31639516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9k8+CRA9TVsSAnZWagAAaTQP/jMTrwYjFk8PXVEAbJJR\nD3jsJk6R2JhEh9WxgxFUnhlsVP6FORBBscPxCtKwCly8FwhT4wjBe0M+lzQQ\nonaAvWxGgFa0uvi00uU+Af2IDI7s71uTsIMpFZ4tfIcM/oshYoTh9f0AbSwK\n++npfewrj1W30CN8sKRZ2Vbdn+qouWdxUXDH1WvVkUIY1YZ7hK+EUIPakjfy\nT+LHEysNKLfXJ/CQ59JELJLEVQEZVzIY1F+SafWbIeojuE4GHlHnNnYyhfaG\nBS4zuTz5fEg0oLrmA4WbPktTCOiqcsp+Ljj/Ua04CguxzAeK8icWV6+Ip3iX\nPQ7UFqMnWtIANfuvQqGqnYouU/Tcwdwe3gCV8FoM5+JvsjPqZfERqHFJ2xs4\nhwe0bM4THs6PejUt6PT4qZj6npBtdMIBjwS3K58oyQQ8WHJv+ONFJW1tscbR\nYFrcr8ZC7uVQPJLSrpWXM473B//+0vUewVrwaHU95T1F+QLjqY3EG7JmCYcc\nIQXWlNshZ4h76PfeC2JE26ZY0VQqHlwxAQeAfGadrqjdBFEXFqaH71/UnQDd\nv4LLZrhubNaYcU4iiG+Hx65RwglEMfYjLdlXVHgavWHipd02dYv3As0Ybc+E\n8lPz862sQiuNVj5NYvZT3GDURp2wZqz7jLu8YU2CeshsP62ed1KaCy+NwOT8\nWOHM\r\n=EvMd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqURyTmBcrgqrt+KEDbpp5d6N08OBvd1Kcgtpg1ltR+AIgPc5ZwGZMjx+bBz3qeHnGiaRWJ9OlbFvJXWR1VL2oXQs="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.18_1609977661378_0.20138026674815723"},"_hasShrinkwrap":false},"1.8.0-alpha.19":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.19","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"8eff65194d4babb202ab9823eebb77ac6afec14b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.19","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-BqZFdQ+q4N+VNhjv86b+i1WXsttydcsUgxykQiYhGb3BG/U2lltwE+juroRS5z0ALPpq2+xUa1sL2aPTuVdjpQ==","shasum":"d654a594f959a89318bada700a34fe5f4310bd1b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.19.tgz","fileCount":1456,"unpackedSize":31643781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9q/nCRA9TVsSAnZWagAAt68P/1JokYvsB3iQtWh9GP8K\n7/cce378xNxRyHU+T53+zem469lhmuYxZpnG69ie4S0FMZLAXrXwe3m8oCnk\nBpqCviItM60H7LQmSzYAyLft3XcNRcgkFp5X3iB0d/547r+RAME6Njmtfr/G\nTouf1REb9LjuLblW4Tz9JjbTyBRTksDEO8skWs3FgmW0CO3r/l5x3lImV82m\nqrXW644CnfHynH7bdmUmLDM0oot3aGUWBNi/atq01FYceFgYIqm58nYCJKFa\nPMDp+IdxFEKKjVFeYprLJa/MHYuO/nSjiXs4Klkk4DFUSKNUC1TLGosfkKyp\n7tUqksXEZ3TYLkA9qRxXA4ZNb9fH2J0roXzIGdzJj7ELIcQs0sO4vp2WZaCQ\nCGOnXGmkGGlwL6zAN83sbXgS5f2SluLuq+eXWfSLSXfk4i4ZkddoCHacwIqv\n94w7DLNE2eSP+VmruEsUJfxsubJek36SdZMolsIYFbk1THf/kE6xDH6bhFw+\njM5BaTndMUUdpxOxsk3GlWS2N8+IbWa7TLXRXde2tTPudbsCzp1jsabSOaVQ\nD+eGrA4hwtocwAKW4h7Q0oDgLX7+yX3lcHpScEmzXG/aavqp9oEzMPEgznFi\n9y4BsLUYP2L3a8v+gpUMdmDpywkmWAUNjBFdCrr8g15gIAEMGeG0qerEetoy\nqA8M\r\n=dis8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFMEgOIslgB/eGonJ46BEMydCGWWvu0/eY4Q18czqexAiB0ZYqcyQ3Xa9b3Bzm3UKG1fGSFh6K/zHcA9snO0YZ9VQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.19_1610002406882_0.6990273368683508"},"_hasShrinkwrap":false},"1.8.0-alpha.20":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.20","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"8ba0d9c483bc558ea9874ee3fb45f3485ab31c54","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.20","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-w4HzlIM6HTS+FCYH66UnrAkB+9jchsQCkvaYRY/t0YAu+En3weuz2SIVvI5DB5dmv6EiAd5swenj4eAA35BiIw==","shasum":"18113d84538955c069fedb374be1ca7c7a591040","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.20.tgz","fileCount":1456,"unpackedSize":31645019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9sKICRA9TVsSAnZWagAAen0QAIq4qwIBwpVUPTpcUbb1\ndK+9QU/gk1iZyGL52WTbeaSniXC+yWvYS80RVPgHaoNvIFlflHbR/1s4bwY0\ngGngO4m46OXOoM8E3tCf14mlIj20icWsxKncOWH0TSCC0Dx0ib4X5Toc8Pa2\n0e/bRaascV+Pu7IxZDdOWwSul2fWmIlpVKBAInQvNNn4tkNsGZpcJ0XGnUJ7\n44XQrA4uhexT3SiqPDND8cPaHo/xOFwbVBLhlrEfqLpJB3ED7Nb3gU4Drtnk\nM9y0Qy3sjl1zGCec0YtBj8CoPXAJfxX7rDQOwLAutfiWmkpf4Iv1hin3l96e\naKipkuYGDr66vGxUV8RSXytv30OSr/HTwsdAOl3CMQM6WYIYWRC0amKKIevx\nBhASC9CdVXqhK6gY/TxGgdVyevFS+h3sR3jDlekosVz41jHtJ6tIIwXTU3W3\nNGACgc2nL2++43R9NSaR1n9Rnl1bE8Sv5YAbh4UBeOKmhHZfZpbstZs0Y7Wp\nthV0m+xV1jmOF/7U57LmEDxQu31hbbU4eUNvcthLZrGbpXr+49sSjvh3Q+jq\nNAVuVPcM97UIZXDfQSJL8uJNSIqt7U1TsM9CQbFMntcHiA4+7T8J1MLqQ8sZ\nhB11498RnbUodS/NsjVBVwLN9H+X3k2t7wNa5xjmmHB7o+Ox9SMknuorP0w1\n/GU5\r\n=RN0D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxOdlGkOErxOOLGZSOwhByl//clZW6ykvNaDjQ7xWvrAiEAl4+KL5ebRIS12UzcLpAdjk3bBPp84IfMisQyeKpdWTw="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.20_1610007175271_0.05219842628672389"},"_hasShrinkwrap":false},"1.8.0-alpha.21":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.21","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"da2da19018a8d0a67c4226b8d5d9dc71d7b52ea3","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.21","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-dtNyCSGwH6Znr8hNj3oWyvCHbZSmNUPaikVJDTxcA9MXgj7dWFIgpYDufmgJONkmXoEIR6Br6AWD1vGvdoGnDw==","shasum":"00e6cde57665f8bbc80c259ebbf02f9b0d9b580e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.21.tgz","fileCount":1456,"unpackedSize":31645480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+kfTCRA9TVsSAnZWagAAh+UQAJeTzVfZ82b6II8DiP+2\nZStJeycTiqFPQ1AZMtt2lrCMGvYGcPJdjOSohSWwZaKuH4cBu9UtOBjCKYy2\nVEIkYjkyUHIfPW3/C9e1uyn+rkJ3KZuSl9lgJNFIsbfrXrGgWBUulEKbWjEj\nQdW3yZi81Dfr3MQtft1UxIPySTksB0Hm9W50yuEz0OqHjYqLSLL0m1gigAji\n0lEEW9PIWzm9mdvGFV0KmF8nqR6WBM3PPSAEZSjgjn7sp0LotUKBfKtIncO/\nNM8DEwSq+6Z0laqE0ZxDepcB6E6SwfdAhcbsRgLkz4VGVFzEuOnw4t1oUDle\nWW4SgVR8fD3h6YuLEBKkZFTvz11/Q4v9pQ4HLOGARVPPQp2qlk0hA/i7be8a\nzEOw3rMz7hysFWHx9RYpgerUyhlE9mRYMecl2LAC/rfRt6gK1BGM2Xg5Dlx2\nUqmti+VT9Me3kUTyjcrs2R7w9durAf1xWgC+0Ue2qUQQznHR414bdMwbKHve\nuzSlqqBXWxQXIPNDoDTrPtLWP5uPWnaljhhDL5mTdpA3Biv6SKfzEfj9kUIM\nlDuMh9Cl1nTd5KGQAQIJUERdV8flxkAvyIUrvyw202a5o0d4MVuHjzohpYq2\nXVbmJ4nXoX7V9s54YD6WR49VGPVxd4fghqwLlZFGtY2DgbS2D6U2USTQNbsE\nnDOR\r\n=6JDq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0sqjEAHWCKYAchmLvLGt20LuioxikbhmqOl1MiMuhGAiEA4sWRfbPEZkbqpyB8u2WA2foTfyzQEQlHIxpmbS6PoWo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.21_1610237906582_0.871116982237764"},"_hasShrinkwrap":false},"1.8.0-alpha.22":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.22","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"3db32380b563b7cbdc5664ec52aa55d6d9c48ee2","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.22","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-L2vv2ym/m6bAjA42DKkYaecZCGqLkdFoXOptEyAY55ct6inplr9s1EcklJRYvYRgNXe9mCvuQi4y/gcTWBPViQ==","shasum":"fc24a338bb3320bb4c1cca8967c22712f20fc9c1","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.22.tgz","fileCount":1456,"unpackedSize":31646058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBpNOCRA9TVsSAnZWagAA2twP/iKEc7BJytkRado0Xese\nmx+5IuxPQzIr/92ojAIAGwrXl2IggiMzoi9tEM8bkqtBrNo4b2qlNAr0hEww\nHj7qkBYWL2yXWWQX+ERDUlhP6N6NjzZNRXAGLTF7O/6oz6xBgsyVcL273SjR\nWdqTQzbTne8hvG3ZpnlO7ZsLVrg7Vkxex0Bg3Oj4vGfoBj9SWYRaGIPH5AeW\n6i8fZCbKJNM/6Qma8D3dGAv1O2QK/icz2mfdO0OOVjoN2nqHo1gJP8Oxkc36\nwIK3TSDG2XM+tzE9zxpmuH4ok45bXfMkvRpXKrRJzPsARK5Q9q1qGIgqWBck\nGmQASxIB+vjI8GFMgEn/7P4dHmd/WeiWGwu81EeIsJvDRu6MHzA/ryaMqIG0\nkZaZwYqq9x+Tngduod4b/DFY+/EM21yz95IdBxlgP7h/8/jSjyriG8Q/L4I8\nU1QPVENB6o28/uv/zP2Cr90RxPBN/7wVte1daounITzFK+8zpksa9KYcKLg+\nwnvCwVGJPERXtqmavO6Nc+KhhVFfbyAOJzXegtwS/AMaVdQup6b2bWg0h9bf\n3HwYk6IymeeSzrOipGGS17U/5vwbzhU8DaAwkjJvRx6FFiqqgRAhKfkgOnjF\nZxrcXu6RHJVUneKzW1i/I3bpcSKDkAgyNWolm0usGV8ABSBpDNoUD9rgBMgC\nN/Z3\r\n=l+uF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpifK1yQtqMJYESnYF/VCszMsmTpUOfDiZ9/DvYa/8DwIgPHbujtyCjyGJNeDKQUrs7js8XZ6uKnmz6+d76Bqqkg4="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.22_1611043661937_0.9369829290864526"},"_hasShrinkwrap":false},"1.8.0-alpha.23":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.23","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"8e392947c07ec0e42a9166694a01ebbef0a941e5","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.23","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-8VAW73vMo18JzKPrA/s6CLXQ+WPHEPc3nq+b/1nbPpU/QTR6WoycHZf29yZiGGa+ks5gRvxonnORDm3M/HNLAQ==","shasum":"075c1e4e5ad24c02d3d330bea346adb74bd76317","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.23.tgz","fileCount":1460,"unpackedSize":31843120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDn5NCRA9TVsSAnZWagAAMwMP/isdljToWf/lUUERrd/1\nWbNQE05cZ7fPoaUreGjvRSncnDOZMex93NbK9X0pWxHhsNFnFokImYBq+eUk\nvcYYuQ35k+E4lEd4ijDV1kafSLLGuikBfqK6AUIrX3AVDC+SvUmBVLL5Aj4U\n028lFR3+oJl6lfMMB57ycBDBmUbCBDL5PtaSpwSPWl0wtoHDSzci7RlbBtZd\n9QlMRrJ5JdwtvuA3LKuE8BpumIDAA41MGRVkZSRfSa1YJ/mF+nY7WeTxYsxH\n8zAG66cNmJww/edeDLfYnDW7+xagIkr6f7GjQS6iA4oPuauh4aSFPvcf2/MX\nNJJU9M/b3y6J1PbktquMXD3uucffG6pLFz28BNjL+K0gcWsHWLz05NzpCQ5T\nyXV2dvOISZSMzN9XGa0/n1hI6y5j5MbAolmqg/oCIwbJ1ntCzv6d8iRpAYXB\nsdqngzcWqmEn4cHXV5cy5SDypNZyQ1CQs155SJD+LwEV3XCQXVrl4ekqo0GX\nmhXerbe4wd7AwBpbj193jiTwx5iAVToOHF50LGHteiI7tNozziSQi5GaPZpZ\nqP+yta2TycM/X9cScg//PCW8oe2dOQxls+LikvpFqMd4Rk5qvhJYA38Oeu03\nVMJSddwDUtA17GFHjibeHbzRRCGqXB8nUfpR2jqUPN4iMXEySInzca/GMMii\nwn1b\r\n=LBI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEKEDQZmBVDAWxhqPzyftJCgjq6XYLei4M38rDZ4XU9AAiBCg5E5vQQY3UIC9zN8uwXeNzIp3z4Y3zP1LgMpA0wM+A=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.23_1611562573112_0.7560371689546845"},"_hasShrinkwrap":false},"1.8.0-alpha.24":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.24","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"4806c0c61f94df9047a019199564cc40c587e43e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigDir = '/dir/to/my/nextapp';\nconst outputDir = path.join(nextConfigDir, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigDir,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build']\n  }\n);\n\nawait builder.build();\n```\n\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > pages/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > pages/api/\n   > node_modules/next-aws-cloudfront/index.js\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront. The `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.24","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-xmXBB9l68wf0XTw3GlVP6F43OHvIrR5IfSpaeS6w2tcdkCnCjonQZoYtFYrjPJ7D8TWwYOosGk9iptEZzs9NGw==","shasum":"54525da65906c7e0bb85b476d3fdee3e5906eac2","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.24.tgz","fileCount":1460,"unpackedSize":31844801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD8EiCRA9TVsSAnZWagAAiLcQAJF2kqswKiCkRKZnBNSA\nEnL+EGyOoBHaLRZgVNZnZ+OYBcODLvzfizd5/DPXk+mLZwbc8D2IpvZfOEZk\n2u8kOuJ5vuL74cTJyxmyr7YlZrGXBOza7W0ngpuB2Ln4yVDte4bEms7kXd7W\n6Mk43K6+6EJz8ZIfB/TbnBqeF6kPNwbjb5eh3BKr9GCdC8rDZRDIeOEdxoW0\n54mn6Oma9B1BxmiMDXHjWrH9ar0FhwEJUKJCh4o53kRo1xDRFOiIzJWqv+Nz\nUvR72WrlyvYhf7L6gQO/Hg/SawwQzkvleOqGqKY0Y/NmmVLXjtYLuzMUKVVe\nbnRvma9Rwd/zgLgI3a0KX0XVocCtYpF+HSGkHCCM/mLgxg4HalyrGZqRdV84\n7Y4WlFbvSotFCNxhQ1czKjVVKnUeUOwqLBLlUf8XC2tRhzTFVstnaXmGDiCE\n7iTBhMQJTFx2rHqMR43kfCKrBu8edxhIBPi8iabnCLgJxjKJdohZ0QARVLQW\nFUzp0pFHgDB60ITD6mtBfJUqKIo6plVb4nA4t8DwiLBRUPIx8wQJ62HCPxVX\n6IAgqheTliy9ZWZqYk+GLjb+EFZD8jzwRoXGXRHNaUVF5cKpCbVtL3Mjep+c\neb5FPDVhJF2Q7mTsg3Ft+QHUcR6eKSXu8NA0HQm0rrRAM2Yi2bLAT/R5ej6/\nWfYP\r\n=VgbK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuhwdlunSvfftMNrDJMhLZM6K+Xm+Y7lTAFvTvd18hYAiBuHY8Q5G3zJazFsCTcEygVcr8cXWwoifNymGAbYjPCxw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.24_1611645216997_0.072456351471482"},"_hasShrinkwrap":false},"1.8.0-alpha.25":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.25","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"9b89a3b7bc8d4e5490357e2348188b7531b0602c","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.25","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-AHPFYsGsUHI2JHXoMnlzMSct861oGd9NPHLzLRdSSn515hP/VhanEqq0///6Rayth4bl42WbC1KjGO2winUmUw==","shasum":"71c76ae80b6cf85ac7a14ecd64d36b9719418b0f","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.25.tgz","fileCount":1460,"unpackedSize":31846149,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJKC2CRA9TVsSAnZWagAAhTMQAJMzTDlyiAqBHA3o7adZ\nb64bhaWPTLbauDRQwDosR3RDDWLbmZqJEhSQMRV1hMuIoBz1sW7SfCXe+Tzs\ngLAYlKFQIhF0s4kKtANu+E9XSTc3MtoBJq+simWObuwLIPlk54jLrk7M3qk+\nL4t1ESXeQiaCSRfOiDVTClsvOyUHF7uPPFVbyImXXx1MzTAuyas16PpxgA2P\naFpd4GBqrpeqEBW+ylojAILKTyYBC4LmxONZys7wSvFTMnZCEd41AotMI7S7\nUa7vvcvjj6SdP6dk1vK/utiTNkwnOb+dRhP2rxV7ZBaoOHND6LKSkfDiPzXb\n0y+QLI1+Qimel5qP+mLdAKipzn332laNobsYKhBhXSh/XpQeaTuk2uVWugBP\ni/TB1Pfr4hc3CrJRBOsxQfkCRdpHVJQqjWd/Po7x+HihZ4abp8lLAsMRQomi\n81YYEY44n+m4+C1D6I1ilr8r8/fJ/m1dRm8dEv6cM1K+NAEnMxeLS5sFkeC8\nr74HPGYtGBfFRJWjWc45ZXGcyZMiGmKO59Z/3/ppOJKlfpjVEpk4Hc3HcoSZ\nI8P7D1OCphKWT+bLAYFXQC3tYcnngfyih38oa+YanXE9D5YmQr6Aas8+BTu3\nG75iTmQmobdRoZ+rj60C5iU/zSdQg43UTfjZTgtQ1qIdL2qNg8ZzSrsQp/aq\n/LiC\r\n=1CnZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbM2mNNR6WC/QR9SI79I0JLouXTxzOUJ774NxXOUgARAiEAupteWrUc2kM6uDI78/wFhdew/aenBuvSrxOXxt71OOI="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.25_1613013173535_0.9535336979944773"},"_hasShrinkwrap":false},"1.8.0-alpha.26":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.26","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"940c5d4862ba14fc1c35bf7cf59b82e73fa1d379","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.26","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-cR2GqaArtuaWQSjawC2a4al3l2gXNv0o5RQNJmWpQi74v3BaoNraxiycJKUkQxw/M4IkohZ476LW1yboiIB9wg==","shasum":"52fa58d0d3968d2c7a8a6b3474fc834d4dc26c3c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.26.tgz","fileCount":10207,"unpackedSize":56510236,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPf47CRA9TVsSAnZWagAAvJEP/3hpOy2cLEAerZt0mKtc\nHT24HxB4Q5hBbMuvWLL0klyUFQSTJ89bnIPZBVNaUWtgVEJ2WrEe1OteBFMG\n0mlxkIGjZM2D42UMowh+y7ZYXB/PEKnopT3o4kDvm6Ip3dD5tOAPMUDMNEl6\nKhhbvlK3YvIlslvgwRymGmK+3pzDLVpOFb0IlADk00GlJ4pURbDY/KpMPr8a\neWV+N0Q7IBeKAtPr7G0MORCsFz0c0sb23apMcnN8ryWuhoPs0bBl081mhs6U\nqWVgjFEKSv71dXOz8XVXBW/COFdBpBqFuNg95qsQ00vEmXcIqULbTuzZpibr\nq615qd0XynC/drxHeCBsRzUFyC6Jqk97ndXuIyhPI4190tcSGJmw77daASpj\nUS1LFqDGW/5n5GDqTlEyYP4GB+EfT0HMxKWpOB/9GEC6QQYW+cosnqK2lsz4\n0VcnSeeQR+2BE2Y8VoZrO0MkumBu1kT316oFeD3S1GX7NOCVNuIPY5x2C3zW\nBdxD9xbOZVQdiujA20XIdfWbmCd3sjeNafyRyGaAzAnusCHGZTj5x8jndp9y\nSdR12bvmOQec3E/EWiYcwz6mObvJP3gT6zU4+KqExaQW1uWk6e9NaYJM4o4M\nDz6YpnFfEc8JPXscHSj12Fhi8s9dsQqO7wr5am1jfT3QjBWi+IvfQlzdUUgl\n06HH\r\n=+Q3F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTMjFFbYrQvh+HXMlns0YbCdp4EgzMDekt3xHvInQDLAIhAN8h4YI3tnkeeKQSBLOCCZ3K90kX8tWJrvedkljv9v9L"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.26_1614675515001_0.3793761706901648"},"_hasShrinkwrap":false},"1.8.0-alpha.27":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.27","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"836f636bc5c6e4ba82c55ff92ee9b23174ce2546","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.27","_nodeVersion":"14.11.0","_npmVersion":"lerna/4.0.0/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-FocgeB+E/m8HGYTq5uBs+O1OSDWKNOw0DzNMA220X4MrB4z5sVz/WjaOfDA00B9VkHnKbjqhkV0tYSkLoGGrnw==","shasum":"76bff46d14813bc96454c780c15d65249fe6d1db","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.27.tgz","fileCount":10412,"unpackedSize":57735644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQWyQCRA9TVsSAnZWagAAVfYQAJo2Y9ebKoCSX5LHtExN\nB2AeK4oS14ZGEOheTXjERG5Ia1EkRzNeVQpgfefhv7Kiy23GGY36kLCvfQCa\nhNctPLcUKWHMoYcUuuJnXToRhwf7fuhFn6jJd7TtX6LlFYsTXZJcoFouNty+\nz4OVFKk6ZHwoEiIOFcEViGry4Dl+BaOCzGmCuL8WBg5ep3JETHJdvFaSuk53\nu9VhBi5tiSQHLkvnpcUsoXEN2dCVdoWT64vXYcfyK1zRrGhLQiJCypcWSkYw\nHiGmacoEHHGma21EpRnlld8G5vAXP8pP/s8gL2R+0urYqYFYSdsGyC1S+8gR\n56KkM1wYZalaUUzkaTlSMfPLCK/P938fBJ+W1mWI5WFSGhIr3M/pSKrSD5E1\nUBOVuXWUgcNb3L1CYvK6OzsWItk/AaIQfUNVl426LM2c5KyZ7x/Wr9UX4433\n05ZLb1qyp+rv7lAgY0BRV34vyGYF65hmIa6+SnrpNK98lleDzwXxM2XpvvWF\nDw+e3iGBG5tYf+z1eC7G5c13jiNImp0bezfPnx90xdb+DiPpqUaeHkko9428\nt+fj6pHRpDrwgx09l+rBETMGM3p0zfjIsEVUJT6C4pOClIbIOsshEgPKZlgA\ndpmp/ehYiuJDNese8OXrW7ehDdf3TfygH3WugfIcOQ9gX+dvLryLef0RLmXE\nTb91\r\n=6ANa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFhhUkT/lEFdt3w4fU4jfA6AIsUbn0iPfwQXelVqdJwwIhAOvfwOW1sW5g1k3p6nLJxqAwugMHLxvMxs/QZ4XhKof8"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.27_1614900367169_0.6630427400635415"},"_hasShrinkwrap":false},"1.8.0-alpha.28":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.28","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"233c928b3801b090249d8c956fc10d30407a45b8","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.28","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-lda6rj3OzjLKtpr55jx0ABvTMv7plpjFBEy7CVqYcf536sRjfWrwA5y6RWCdqNPUzLWFFltjGOuXdH7W699f8A==","shasum":"be4b5c55a01a0d489b39eb61ba68d7af8770b6bc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.28.tgz","fileCount":10209,"unpackedSize":56522290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWDIDCRA9TVsSAnZWagAALXsP/08WSyGokQ3UVK3Q1Mcs\nMRqKfH3MRbcbRWZqkxWc0EIapiq0DR6koKBBS37s0MC1LMGF9sRjifJTeTsl\ntK5V8D8Oi+bJOTEl1vBO9fMVxeZMNjz5/LTm/X4IQf8Tjnp/9bq1cwp12zXG\nKgI6surKVjptG8ucKq0oy1jAXAQlHxpKWt9debVfjGMRYTMWRU9SwgmWVmyU\nGyP0WXloT2fC4gDSFRG0Og5mNOzFV9gH+i4zn3oVqW5eKlttz/l7O50CngtX\niIY6zW/rYWYNFs9tUfrKTVPWgN1W47MjqzyVRSYk8l+ykjj36uWqkDo2uDZ5\nJtzTrHm/FgdNGEQjxIOJ473fX5uaBusyCDLDBantmahic5CqyaJvkcOzPxo4\n8WBIdbP2RqW92WX7PN5mMuETL2oVRv8pORRebtqqD6QzJX/N8fALPEMamdrX\nkRNcWfOkyvfiM48qvt+Iq+35bMofnqopQtWVoFnwUtLAjcEE/zHQTuEPduga\ntMnOT3n2RIEQLuoykGQ2usb7MegkH9Tg0Ne1AcvXKkavZZISsYfIGPZLTIkT\nJajjHtE7L9fHrDUYwRrFzs+KWl4xuBR4saOlxyPlqJ+u23Au/EovlWlaoOOS\nuVbV0282kxEKjJEHI8OvkJ+uK2omcW+V+Tx6QJwuo9xrGGzOTKATHJiEbXKV\nXUPR\r\n=xF+6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGa6UvnuTbbhu3UJSmrwVgbsEaPTPjuMit2ySc7auxAAIgPRGzDq+vuup9IL6Y7n/E5Y9UjahFzcPz0rUcfzazAFo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.28_1616392706398_0.4761307958494698"},"_hasShrinkwrap":false},"1.8.0-alpha.29":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.29","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"4f1d4b29a9c4dd4ced05430c60e05f6a6fe08971","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.29","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-caFmLWCNQ/wOGVw/HiSosnwG9kuvroabLlCodJ/9iS9XQi1+zSCrHXUQ4iA1v0Vs0AtUnO7xma34vbo61jUs4w==","shasum":"545b3d5c9e9dd524726dcc23e9eb5f022c85c4ed","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.29.tgz","fileCount":10209,"unpackedSize":56522809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWu3iCRA9TVsSAnZWagAAR+AP/0hy+71G2NaQsyPm8XGj\nTG7G3goF6JkkfUWUISmxhWjvOXRgDpWsnRx9MVZY1kwOR1KZQC2YADz1mNKm\nfpMzaqOKSrD/ZiEfLNkWtRR4rtNG/XBeq0Yq/9pIiE0+9Vy4LRLmOv3hOKpB\no7QW3bRkJLj1/qwFvgdpWQRWSqKoLN7FU8CEAVDFIlydwRvBr8VKdN4qxz9v\nNhlL9DCMTDFveBXSYey4hbLZMkCIdqWF/ypy4RKgMKWHf5h3KTiSkQjFtrnQ\no1KXGD1e23+Gl+Nzac3+3hTBUZDNbeuS3HUFaGYjBs21L/xuEuc7UINJHNbJ\nA9KeaK1X5dVbeErSAf2/cxu4pzEA5sND3lnS8fAB4O17GdTYk/mLfcdlOFd3\n1mWWnPs5eAYg3T952BR/tTCvmj8GX6Xb1XilD8zPyE5/jHQtFXzGR33YYPqe\n7Pr3X8SEKL1KO4vjb/J+NRDn+7EflYjW+eLfd6wCmLe5AQxteMm+7wCM77XJ\n3P2NlJkDUzWGFU/1WlGj3cCkRIalVVQD7Nrxr6xpFYkf/K1fp1Dfk9eXDODU\n7HNLLBYjocxh1WeDKX5qwa6KgVdDLmeBHFoqsVDXZOp/Nixv8Z+vW7d33BVJ\nvnScKQjzbqANekEH/s5pKJXKwqBBWQ5mbL2+sGYUp7epFh3Z0YXCfZQ/Az/6\noTJO\r\n=f4ho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5Ehf1Asz6rcnhbQ1lV0jaKB8ljf07CuirSnvrKDJg+AiEAs/KhzEY/QBvklxYOJCGdh6+6ojlDjt/4OE4NVJlnYSQ="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.29_1616571873969_0.882283270773649"},"_hasShrinkwrap":false},"1.8.0-alpha.30":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.30","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"2228b4dcb776b38a108d6597203e3ad93b0af47c","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.30","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-H5ve0pfhlGO6nZpuXOEjmBajZMBOwApsyUWxMvfMYCx+GERzKauo13HbLWo053bz40lUceTocZB0cLF3xHG+Lg==","shasum":"d813fc7db394f23075243f50469ee1a04ea13687","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.30.tgz","fileCount":41025,"unpackedSize":172489104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY4kcCRA9TVsSAnZWagAAQZwQAJSAGuDpE1WZN4tdMgOR\noFNbCAysj5B893sqSrHKgIZb8rvFjMgJGQtgZILg5MYKeUOnW+agcVP1mreH\nAzOgHgdZOrp1x6PrRMh3QwUIJeSlwcq7wxMrGuoStMNDJtSDT2SIE/bRpYAv\nnYne7bgGPrvEsPQhA5S/SqpSp+q84N6G9Kg97VpIRDk8ThsFV3UkbAn56nSj\n8VfaPmf7Cq/gCuJgRHLTvQ+nFiUJRDnohNuEPZoOZmnHlfOIFB9fBnrq0sRh\ndlgXPfsIyju/8sXW1n+7ozL6BFj43BN19QjdqfZf4f3C3J8r1cg3BXmWrrtN\nPgTp2ASftclJZIBomhMjUQeJDkWT17d0jNZbAfYJRRUVGhSB/JNafuXv81xv\nTfwjAQ8y1+ahVJhMp/8PmFpn1+bpopDq2gDJljlnHaZUsilLT4CqE8zpovj1\nPBX62AYUts0apKZ9Adgknw9In4N8KclzOaXbKnKAqRIF1ygNC7BbcOH2H6E0\n2guewqHV7qa1EHJwGOJIL6knrLMMnkJTfyVshIrupe3bNmnqAmcZBNvytjm5\nfgBgCeKqMQLb41K7SxIcbRMDmyfrz/5y0ZE27q7KoGF5pJKA+plMjVPFQjF8\nqz3J0Y/L+exVnTOxP6erSZLeJ9gSAS8jRz6csxRNbnbcan8lNFynFZVQuHjF\nC24I\r\n=XzOs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8vaBgcIUOjrEpKn/G+tHpmRYc5hcCSiL25qwodR7sXAiEAywQffKd6AtPeshktgd01xsb+3Zm2TXelxrIPBj5axog="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.30_1617135899607_0.8245889937913851"},"_hasShrinkwrap":false},"1.8.0-alpha.31":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.31","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"3a11699f92df41ce9086fbc2f368ae21b2ac7252","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.31","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-Wgi8dgRGj+CtAxWCXeYvPGa3PBEj+Ud3wI+/sJYdeByho6RgwOW20q7X169cQl7WkZveuF2dDCMdBaCjc6MCUg==","shasum":"a5077c122832bec75cbb8d29cade3299d1033627","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.31.tgz","fileCount":1471,"unpackedSize":31929265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZrj8CRA9TVsSAnZWagAA100P/RI9NI+W+T+paSJXizWA\ntiQGLxvQ4Dm/5z26wet3hkrOfmzhpUwMvSGmPZaEz6tGkiQNqf00TMvL0qb9\nkEnWYPDwaKNPfrylCJ8RFlNCMw57u6cDQ0UPOB6ddV3E51xz/CpMZmDrd1Nq\nqUk1x+G30h77LjlnzmkxjfJ+KTIQlDO5P/kR3dgV9UAoeTulzg532VLmrvwd\nlL0e111XokaLcctkwuuangs5ezfk2ETNz9MspcjSacvneVUwbYyx1wRjKwIS\np5he1owlZnAh5E+L1FDwV98yxvw8uS022HMCyzdIHfrvP0qABb60Ys8kcRsI\nUu8ZUzYDayBD0zVym4m9C1Xoymcr+IYwUOaYZQVx2XABU1P09Y5nuf7bJ17o\nsxUCk/4G0nbJFtsCm+x/3ovwPMZ66jQ22UMpjuSzAwP9FyB05y1PYO1PpV4D\n1Nhdc/IOWMJrUxtRussGdoKGL406DyEB5oDRbRMI/ubsgS79OhSh0+r8Htn8\nSMFzwkB4o9eOpgc1xn5ef66w7/jrfrjlk3iisKtYQ20ZJ40oTPxiWTlaZSlW\n3pfijHo63m1RAAgft1ZaBI4nh/3zKiz2ceiIsa02WTj6FfZOGHs826ORKbFs\nRK0K2CjBahe3Phv6nXHPiAtIJl13/SIKxaSvsyTIEhR/Oc81JKSR5uwsdNwB\ndSic\r\n=NliZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXOzv4sLLoR9iBPD7PoGQtBcVQScWN33tXG4elNQ7lgAiEA3NgAQu7vPFeKnHzO2sszIrx6pM9pHcuvZ7675hyU9Os="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.31_1617344763403_0.7217667316444665"},"_hasShrinkwrap":false},"1.8.0-alpha.32":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.32","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"4e637d323eac5a8cff51f455f0f262cb81c1a3e0","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.32","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-baHB87R6Ij7Z/7GGHZ6aQ/afMxbTXJR7xhOAUttuWCYeWhIca2zZL5CqQBOLTbtP2o4ZCB+sFXU3Pe4aau/6og==","shasum":"e52aea0cc65d70f37d74a407dc7b99fe2099e00c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.32.tgz","fileCount":1471,"unpackedSize":31929778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd9A0CRA9TVsSAnZWagAAtXYP/AsyESgX1cy21UkKvNlZ\n3nD/D7BM7a3HlRqFsG2t07WlqCTARiz8865chA1x4VulvYXYg5LFoWEuF1HW\nytRgsObEZbchXUCpHrS59L3v7mKcCQeFpEP8u1xeXpHdPjUeCXkGJ/EX7i5W\nXdKgsWFcnE48c/zMljRUXOK6Z/y/nGgWO+r/x/2vcB8L4S3vSe3pf/Wy7RpO\nXKJCxXWURQFUlV0qNFDeicdBp53CjxcmA+Rxo4abAdSk0723AMBDkUv5vT3O\nRKOuBXi/dwAQfsjQs06fgWLA5hfY1QroPzpu3JswTifS6px+qat7bN0cC//E\nI9G+ig4kS1tHw9Ggvbc+ZjYey7ADDoPKwz1i5XCNEyvnc5mgeTwrlaMs3us5\nhxdekjAS796g/HAziamsmxrQALKCzWT6cqmpmH/66uuB+Oq1GmO4Nf1KzFgB\n76ipkrwmevjxh6wv7TxdUhRgUA13u1Z26O3GwDTRkZZsmZzVMSnZlUtJNwml\n6Sh3DDURRlEa4tWUDdQm8Pe95KlnAKKxqwZ0eJ+SsOtqXMF9n52e2pfwkt83\n9H9AVYpwpj7QipRrbEsFhkp55rRivAG3MTE7Bs4yC+KV6Zjp127YnMqhH4/Y\ncfKmqNDnqf6MVnA7PaYexDobTGu1ud2voVoOA52oks4AIp2HiW207hYEk6Y5\nKnlK\r\n=Oc/V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC78xoOYGLLoaTq3aqgP3QVP54Wu5M8rbSpzY9+zI6cJgIhAJhsNb+ZBcNyx9h+xzbnLxrsHgB3/R7G1Q+hqkD6qRC9"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.32_1618464819377_0.723213770336925"},"_hasShrinkwrap":false},"1.8.0-alpha.33":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.33","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"f64fec41fb6db754caa77fa110684300d25dc307","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.33","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-qjxKYL50dSxDM2ptHmSED04jC7gAjzTdXwU9Ipf9iigatQD6w9EJ1nzntwYkUB1sx6tE6HHcDQpgCjQfTkSmzg==","shasum":"f83d479b3df58d8bff998e963271cc8d0d0104ca","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.33.tgz","fileCount":1471,"unpackedSize":31932272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeWtMCRA9TVsSAnZWagAAukYP/1R7lKxWD5LDc5nHdpAW\nRGSR75GEiEoPrx/TdO4VviGdphhx81Q5NnLVCRDVj5ZJbwBhosJi5QMjSGqw\n9Rwp/KL3W/Z1yR+tG+/hb0R6mB5gaiFABvvPoStxVrt66iQCRKvlRSZ+oI6R\nnQC2/p8ZeXaHNQ/v9UW73XWLJZQ8N0CDKVSpz9WFQW4dcH5rEjInuGTVsvhq\nQ/snHbKeZig7Iy0t25JPyPMVXU1QEeOo21pweg9/vab2gx4qAWohjgi3bLP3\nUqSIYypDp1Yo6BzoMWrV4OmKjK2nYZrcSgrRVCnxZ9l1nhfiIfwBg9bKHm5S\nsNeDthHJfeWSEs6xfPFkdOTvVZx/n6PE7J2Pnl4EbD4/UpMeBo3Jxm/RXj5z\n5OSsloZ2DkpIifeycmPCIVVdWfvpbZt/OsgRUI5/LzCmG73WFj8Bf9n8lVbu\nVwoOpbO2K/YID0QyhXqvZ+8/Ln681gkLoLyy8aMViVk7e67TaBZWKPhyU6d5\nN4L3ACDoSEBepwTdHlwmcKSsNaA8FSXd7gkPW+hbV2t71ym3ljJ/bKUUJCWd\nlZvQYwoh5Y0XhJcVfanEM0NZVbZg1MfPl7UUuR8zGuNmBpnSCQ/+dWwQC5wl\nHv6Y2QARjQq2aAl2GmmlOk0NlZm+ZaNFMPRtf4mXBBNpCrZcLexhkm1FqORZ\nhdNf\r\n=dKRm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChOS9ZYLUUCYHVIXchS8H0siy5JLh3Ekn5Kn56IOArmQIgWg4NyNPQWUWyc9uw+mtbseJt6cbTFkeoBFJ72pPIGus="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.33_1618570059230_0.5774535460350749"},"_hasShrinkwrap":false},"1.8.0-alpha.35":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.35","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"5eedc12543ad02a5c3198f67dd1bccd421d3c361","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.35","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-kuj417JEjIZ/10KwCFowANYuZwCtOvOYOn8VbnKOVPowDFANYmRncv1OYJTP6Jy54pDQir6JtxWl5/uOzW2iqg==","shasum":"2e6ed8518da310c7d3c2319907c6dc1c92750c0c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.35.tgz","fileCount":1471,"unpackedSize":31934876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgf9E8CRA9TVsSAnZWagAAsNsP/jI64g4v7RAVBA40ysx1\nDd+iPZgVjwZhPlA5+xzg6CvQWXqN/CuWuF4UZa57G64uVdygftWFJbYHISEp\nvcLVQqpTDQdYyOOXsQZyGnfsZYalE0J5svD7rNBMxNU5ZGZiKIwPvBu6Y2Py\nbCknit9vcT0qkehlyCPwIBLgtf2Ml+Y2+t5FX7MWvbdqbmFvfHlkys4z8Oc3\nGNQDvOl/BQdmaI2x6p/yg+nZmUGQdaK3t+taPOLlUBMniJk7JaWKxeGE0fmx\n3NE/MnH6x1LSuiLDJHATriBq23C9E2qyq795XMYJqQsjEIDtHqby2BuiI8Zq\nxGupo76eeo07RgpD4IW1loeYFuQmlAoKerTWaWcwn8I1iZ5mFmrCduM1scGe\nPsmThtQNb5nzOs+uEjvtRT2ZIdo1ji0ExkVnUfJ0i6bBS+WGA1/YSEDjNo68\n8gnWqbpiV2/jv5WX647nv1kP7Go/j6yaOqRlcwnvHWJSQe/vmS3EGPNwboaE\nJqeJThM81UD7yhiEexqlBhVeUQytWimgQU7TsRmhvVcZqCTWHPh09bZZIv7b\nQnL4IQ6EAvUlcZkdFEM6LiGpllD9q6ajycWDW2LL6poTtEriqQJ0hKFCg2H/\nIs8Fha8UnC3dNhFnVrqmEI7mAXjEfzbhGoH807erKqITn5ldtOehAZ/c1Aip\nKmmk\r\n=y0Np\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjneVvJwXHXhYLuCXKOg1NQiCVMMRpgBMTCZzVE8t3RAiBuhY88ACEKLNZuxXlF0IiC0QRjrnpU6+mZyaBQCNZ8Vg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.35_1618989372162_0.27237321706067275"},"_hasShrinkwrap":false},"1.8.0-alpha.36":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.36","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"64c79dd04df0e78fd2005fa1f9c6997bb58003c5","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.36","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-ZAt7QqBE7hZy7JXCgW6mssA90p9DzUEpt3u+kjRF/9HAcqAclMdEvxlgBwv7tnwIN3hH9aQanKLMWfVY+077AQ==","shasum":"ca3f7023c68bc73267d61dc1f8d4a8cf29db34ff","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.36.tgz","fileCount":1471,"unpackedSize":31936353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggHrWCRA9TVsSAnZWagAAyZMP/0jimpHo0Ku9FxQcmWV6\nM1BOnYeBnN8jY3CFdYihmpY/rU1DtfDwar2ANg9kkBRubEZEYDiceNKF3LN9\nXw+ZFOppZnp8GYlC70EjPw1TOIxa9iC5r32HrONYAIxQNVfDSmFuXif77sl6\nJfm91OJ2V8dMIBAg6SG0xx0mJEoAndOoCXzGvJXgUEJTfi8bsABQZJHQ1oBi\nRcolp9G791L5dRrVrEjB+k79peyn+buZNnXUNuMm/MamI9eVnyV6A63kRhZI\n41SMlE6QRcLXDX+OQkJt0Jk+bkOgR9xI1EL1QHJ9UXcqe7wkshHel1J/vIXl\nrf1K2scdYQWX3NF7UpiW+fT7U7d999EIiDIw/zs57mMx6K51xdl0a5g7TTze\nyNkGTQQ4zvMyoKZ+QrPPD6dzBFy3+F0KICD1PrFXXrImSBbaIw6CUZ6PzGOO\n55BnxdgwjKizPylJCe8Pkf3yHnRfzYLDfm4Vt9mvGEx9Tt2kk05EKFp1epgR\nUCnqjLs50/z5O4gvGPONDsoxOju4Qa8HviMSMXKsoZldzNtflKLG9K26OuAU\nNiFm5mXeBqsdKp4iiKAkfnYxIpwsmK/5ooK05gnRQg9/sZjOpYfQNGV2OsSK\nuxlfoAo1iZ2heJ+7Nq+IRc4eoE3kxb/szbptQyGQiwrG6SenYODU6UJD9W+E\ndXL/\r\n=hbE1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoIWGA6uK5UTO2UFQ4+ZmMnlyrTGOMfAm9k9WIaq7fdQIgdixCQEIdOF54EImHC0iromVeiJQrXJ8wENnRSCSP6iM="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.36_1619032789879_0.834019369309581"},"_hasShrinkwrap":false},"1.8.0-alpha.37":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.37","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"27eee5b020f589f7616244dbf92d24ffc59696d9","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.37","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-Hl0qTkVfN+E2TS5j0lb6j2nDTV8gQAIKDMh6nyKyuYhgCF1RQ5Yfg7yIgximM9sfmB26LHrPDVQIVaJZX6tZ3A==","shasum":"deac04233da95137b8ead4ccf5c366df3ae5027b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.37.tgz","fileCount":1471,"unpackedSize":31936778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg6UDCRA9TVsSAnZWagAAyDkP/2NtZoEEtf65uZgR/UBz\nMOnS48SiipQljc2e6JCPJkBte4BEz8bwkK8PRJ1WJtzkR9ivB+lR/7PBNKzn\n1/eKH2YAwVUQUWgFj5B4LBBlhJpcM5Z7AnddoBPqeEhwt+SeNO5LgK4cXmS1\nru5O7G8CsYXwEcR+kv/aNySkoW91ZPNXFtFZLkK5LOSTjRyYntNxEMU+RYFb\nEIDLFXDELOztdgqqKTvMubU8BOns1zgjMFtioA6wR+2YSQCO/3Xoezautbki\ne9wy1kK6iu2rw1/NazDzjoqITL4DlGF44Zluq6p/3yKWCLQtQ1rOO/3S3zrx\nq0wTDLSIONk6GVQ3ap8thJyeFBY/twWz0GJ6P6UcMNTBqA3dssVfSOoqC7RK\nqN60D8MTznOj1pgb4MVIWPCR9LitdmuILUhvUIuLSuRs/M1OaOv7ZbokhxmH\n3OsfnyxpZNKMcAePVTBACP320byPAnA2oPv0vEYXR7dvS2HEkXDjwQnTK3FH\nz0FcGim+cxeDsk2LV9g0NJSR/LY/qXEoiDwHZnZUDYOwWC1Ktj0DzYYUZqId\njWyO3P9Q1sojXxnPWsz+CyyfZ5sbRIIq9kLxUS3TswqHFpJ+nz3VWRthnHcq\nn5yxeH34B58pf9Pfn7PnLn5/+xGQLRoMGGtdW9P0ZvJgFgzg9UNMn7isMZsq\n0LmY\r\n=IbZ2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXpSwr8xTGT+uYyCWh/aCrkiEshzMgmm9SiFxVE6KusAIhAJSwkDMyrVRU63ilAdOdXEltX5rZsCHFFCEn9YKfC4l0"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.37_1619240194572_0.939257797776361"},"_hasShrinkwrap":false},"1.8.0-alpha.38":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.38","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"434056b2f9dfcc124d384768dd82f92df8ecb072","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.38","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-G2nR7JjATgHjhDYqUj1EO2Y/vf91Zd23WuI5cHGk6c6upPJte6JW5nHb8cKMwV8GXWBqF6PmN+CahMTd6Ca5eQ==","shasum":"29d963ca786123b4bf8a4a13bd174f919e06d278","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.38.tgz","fileCount":1402,"unpackedSize":32084000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghyuACRA9TVsSAnZWagAAKfgP/3A6rj7WNhrl0IcwN5Sp\n52jJTzdEnCTZsdg83k82ll/UAkHy+1lwEHiC7k2A5mm9iM0ndMgkTovy01Ty\nlIwclWU3FvM/OaFt+8NGAxCk3BftO/8aPolULXRjiIniB+I1yNf7bZ6eIxjt\nJBeqVRqX7FqCkftEDo1pXYs76hxzES0t2Xd5aDxerzy/qDo/Moj7kZmb6Mx+\nZgQJUV0aeC6LUXj9F78eNOSKZ6txSEyX18//yLPt8VxTPgaZaLaJPLvsWr7/\nv2YwzGrfzLGfqKWbZ+1dGsPbcR8OAF4U0v5svzQsj09bmuX5wVxpcqY15LGc\nikEFRC1Q9ovIuJ9IxbTzTpe5WEsx+QJj/XegZJEf56irC0BVmqwtwMZ9GXr/\nPvl2zBCMiXNYpBbm1IbpQKogXrcK7ngzyHIumNTub8zQF0Bf7dEhSAHwuoQZ\nFkOlTWKR0NG4U1zRvvsNV094buF7QrtW2s0+Y1EpvsLx0w+khmdCHiwHzK0U\n2VI3hH2L+lRVEyq6ZxB4YAPZ4w53EIo4p1Q9jd9CBG8A5gqLgaTr/pQVtWsO\nhUZuXjFDDLbKPI7qX93gGXufimuv3Wpyg53rxQf89EP6xjqE1gyCwk8jihvH\nU2YvaCe9JPd38hBdTYJ7d8wU4BgSDaEmuIaxsZFcDWh/10jmg4nhn7rtfElJ\nefhD\r\n=E0ca\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH9cZbNm1LWZb1QFJ5qsOJp+nPIIWfSCnMVxujVtMSngIgZIqnS6ari7x/M5gHDG0juupsLoSoMoRrtWCd1kj+fPA="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.38_1619471231787_0.717908412239842"},"_hasShrinkwrap":false},"1.8.0-alpha.39":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.39","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.26.6","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"c86bd0977214ce495b26e71d97c4049a2c77dcec","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.39","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-IoL5597lq6H4qtBWZXcaTQVwl/tMdh0x+5VRCzj1w+MKrYRBZdPazgNYZ3KdHKjrSE1s5+uH+3DPXHVAnJANhg==","shasum":"6ca335b13982e4d7e21ae6b03c9ab66a7a8f5a30","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.39.tgz","fileCount":1402,"unpackedSize":32084786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgid4bCRA9TVsSAnZWagAARWAP+welCW/9Iun/0ATkYoFO\nmgDD2ZTgH7/YmW4YUS9tDpTMsVsZAaOSGBGJeDJcgb8g5cjAVBXCQTLodF9S\n6Rf65MdNbC3FVzSBr/+8f9oIya7FgY5tnZnV1A5VYNw6bGx5ydSv70Dv8Djj\n2yoAmm9DFkJ0GzzggJVkfR/q25+SgAhsICqJf79GZUnIokDR89LoinkCBSkr\ngd229YJm2ub267ynhDZdNekJwu5b6/fgDIHnVAdglAOb6bLG+U04wevFPE3g\nbCPjv0TGKe4ITfhG+uIx3RmNJ4jRQarHlsJml9v6m8gEgT+7nHDdwsju51/n\nmxH8jcJOMHT8l5obSfcUxxjZELMH6V1eQUBfSNqJyGTFH9z9krVG9KcvmSot\n8p6t8rrNhJHQ5/uSxJnY9ojZagZyy9pn9+TCALW58ocxl9pv40Oj/QpkWtTI\nRpGKOfhrcawmDJR24YUYuQ3Xo6zcjJNZGr2SGujOtBULtm4456G4htoz1bDx\nSLn3WI37QwnBHjtbL/28VS5WlaC7sbNxuw1ubo/2UwXwmyo5yLKbVjkzHeXz\nlMY72St2jeNrESG3Ki4qxXQoz9kfsKEhy+j6GcajwEDviz7uyr4BOHuzSQQS\ne4Nj2ZIiyOHfuju8tBklYLGLyeyD9rPFkBlR/JadcvBfuuh3Te8uv2PxaNso\nQlSu\r\n=5QA3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKftVhjs9Jx8eii2Z0v4RCHCOeyIQI4LWu4MfaeXzBiAIhAI39GHkSR5m6bp2lNp79uFJ8zbW5wzE+IRPJIyHl16yP"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.39_1619648026787_0.9453398147694545"},"_hasShrinkwrap":false},"1.8.0-alpha.40":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.40","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"31f3d3458d1aa924c70609befa01098a35bba317","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.40","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-0duS/SR19ivMflNRWGfl74c4BAABXZZxBc7aV2qNqV6SGSF/6/qiEMucFw2xuaKQ5e8PQPn7BILl3LIEF1MlYQ==","shasum":"3f3ad5e69f29448aaf8602ec86566cf096a3b5a5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.40.tgz","fileCount":1474,"unpackedSize":33810080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgixIvCRA9TVsSAnZWagAAO2AP/jAak45oLnZy4iy1kffm\nqhR500eekj5scQQIDP6TImOFchIn6QCWm7RhKNHmPBJrRQI/a/kdbk+Oa1aW\n9Z2QR/Cv8F60R+6RfNXFFZmTs/Hjq7aH0ObIvsmiIxUeIcVR8q6wGOy21FJu\nVtwUjElliDrLUK+LVuoXtmVASLlWznxXSWZf8rRmNlj5Kcb5I2CqIsqdwA/l\nwten0ka8WL///wTpsv0scmGyAlA+3niHPcQj98bA/KuIANJubyKJkVR8jOYd\nVndnz0qTY7ZSl23uYvvDFL/wSbIDMcb54aEfgc991QA+kyaWsr1j0BeqHLQ9\nv2dQiAWCCCMPyl7kgK4BXj2TTXeGw0uVeG5GCV2Zwjw2bEjHCu9iIoL/MdVS\n5FOwt7U7BJ2xB9STqb/uRTwfOv7GqYrjS70pMFglvdqFRAGBgQqiuVlHDim9\nzhsky9Klt5p09R1CY/uI2AccLQSaz4FMvFwb8rXF0YLx7ecUuUFTQ3rTLsGp\nZzcXON2VrEZ/mHvIqT94tLBDj0q78SGXOqCEZt4AnaU7epgJbq1ipfxCvmoL\n+enrhtiz27YGnAUoM/Cqw0+TRcWqoDEkgPzUQWsnvqwANW2f43t93dPeppak\nxWhQh+AJxxTe8WcElgRjQO84gKSdEQDZsHBLSm5afdWDLUQ/SIzt/lnWWtuo\nfuFz\r\n=Vnoi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGXMBGgVwJTh0CZRM9UYiotGGsAyswcPuPEeyvOk8lFAIgUbdXc/vI/71sP5X14EArnFSbshlkNzJ5pkyDoPcMSEo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.40_1619726894875_0.44287534576925913"},"_hasShrinkwrap":false},"1.8.0-alpha.42":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.42","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"245e3013f6bfe8b7aa2e85ded42f5e7776c32bb9","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.42","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-89Wipv8gpGmG7W13hA5v15mx+nWbaObaCRQPfPpoyKk8jYznkkhX/LbqgBqd80aOH9uW2r9WqZMtM/wKaOVvbQ==","shasum":"8e8f540e91d2aae9e5aad95f06d121e6940c6836","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.42.tgz","fileCount":1438,"unpackedSize":31808745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjbUnCRA9TVsSAnZWagAAVnoP/i3M97AAj+rrNHxt3wdx\nNw6QUV1y45ukfz1nUBJql7uGuOmZGiItFHtV5QARJexPixcYFuPo34vQgjYN\nm3Rd9RWmAQYXBHdSrta11QeubiAHWXA7cTab4TgqTPdmXotFG7aX1pPKp+sD\ntWdOiobIwT6DS9oIRY0oIX58/U0rYM03MOM8UYGFwBoN3vcQGOuvVcXEERVV\nBqNGqPf498l9qQjZ7mDLfL+KPPesq8cFKyV+HgFX8em19Mx0BkN5bSZ9CZMT\n6swttKxJM8gWIM+xhpjsm8NBao04nqdIkI61Bao97X/T6UTNI+IhHVLoL8Sw\nrXIV0sqJ2Tfc1ndK4g5S9fLMgTF/9+RkwSE2GOexNGFjjMQGOhrdZoWbo4/P\nXlHsu5i2i0/b7GuOkhgrU2nrFuwwWGRKOPh0HoVUqhKj9K5QUEstp5NyXJx4\nQW/zp9jzL8FlE/Vg17YJYKzvziW/R42Fb4/gj9sgQWe2PBVJLwt50i/cCcDo\nS3AJJpSLN8jwDD8kGISNpbJY/jSieNj1/aZ8OVWcb2DxtH1d5U9pGLPbuHjB\nhoTt1d8dnlbN323Sine3fTr6GZlnXs6NcNWAf43jgZ7L1hdB4yxFTz+/UBmW\nmU2yi5updHTD+Fm+nFIEwsFoLqvO6KbfJCjzzhhqTOTRaJkaq+a4mEoKbqxW\nV+fj\r\n=15V/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEThhjdDqqaQ9T+iWBX+wLI3jTW3grRAQflUWoZMX1ngIhANw1QjIo+IDq0F2s4H801Ju7s3UIkmMllYxeCeGcVWTe"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.42_1619899686044_0.10966606424260572"},"_hasShrinkwrap":false},"1.8.0-alpha.43":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0-alpha.43","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"173fa9277e28704381198bf1f3b52a1ad53a2001","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.0-alpha.43","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-FdCUk6fTayRdOnc4yOqtP45ggiXxZZfb74s/1ux1lPXLbf9/vK6rrTfg9ItrTgE2OFy1kQrhhtASOkGjmyZXSA==","shasum":"296ad397b18e720d5fa5c6b5a291677740f7b24e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0-alpha.43.tgz","fileCount":1438,"unpackedSize":31809037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj232CRA9TVsSAnZWagAAn2UP/3dEfE76BFkIYXAHC3vy\n7JkeTlW8e1clM73ZG2BX6qG/Ao/Zn4w2iFJGkyMpwkOKdAHe+8DdIhiweRbC\nIT9HV2DlWYHO4B3c3IN2LfyjrdSvLgeQnABYbc5gciiMUTnOf7dfm9kEsXLy\ncBydXLmJLZ/QehZC0RNcTuz1s6AgZZPi8zqG19rVDDDwlvtsMktkjm25Yr7/\nKbuBljSxLoBI+gxCbzKXZsDVtWeJSkWXPE8Kym9EzsGoDj2icaVGcSzq6cxz\ndLleHPth72hTK3KuZ6GghE2v1hI8e+x/11HKr8PQqdAEjQQeauSDKLdnYQXG\n7t39J7tyhESN23AVDYuxXEPSLZg4ZNwaopdzu4UCMJJ/spF5SiPAesbE5OND\nW8ejJqxOdCrHiS4C5Xd5QvG3oX+C9JxinVfoxqtolZ7e4fE0wYVBRucRpKY7\naAypaYE0JtJ6QSx3Lxp9nETh5Hv1DtOGYdlwUX7j27aWZNh3v/e8yVuwQiv1\nPJXbWXdFBK0+UILCmu00lTy7uWQDV24Y4ExpreECrvi43yPtiKNxkMyr+4ZX\nYEudGwO+AsPtyT/R66YKSl5KwROwGEQG4Fif3LNfgvaNBh8KAu+JndX4PvmM\n/BZwdsDfs/HrxciV796snyNGrCQ4kvU8PJGO7vXKd8LwdNfOqEoL1ywhXFLm\nft64\r\n=AljH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXOo/lzntgnxoTej+X06z2KQyb6vXGkwbmR5YdrpmlCwIhAJ3MbaBOw/Y2UVp90grsMHRDMHusv9seNTDgXW4XiwO1"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0-alpha.43_1620012534284_0.8657928750221546"},"_hasShrinkwrap":false},"1.8.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"a398cdba462ecb244f0640972ccda730cd772d05","_id":"@sls-next/lambda-at-edge@1.8.0","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-fELc/83OpTGv5vUF/zMeGbNu2z225xtE74YfRw4GIOCCfj0LJT9ycSSilIrVjUEvQUp9YLmfdCGAhaeENXgYCw==","shasum":"d9d3f9c14f342d5f72ad4fa54b3706b94f1067d4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.0.tgz","fileCount":1438,"unpackedSize":31809256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkFGkCRA9TVsSAnZWagAAoBYP/jUbAS49f5UUEHJQKN0F\naPD+6CgEBLsOnTlvqz8xdEZDCQmuT6yYO5xxHpSJf0gZmAoqUEH7HAM4L/HX\n5M5RjCe9tY2lfm1aufmvMqHc/DTTuGakIWV8wMBY6o4yQ6CguUOJ8Nh0JSDw\nszpDkmUltjuuuY1h7MTY+U9Jv30JQV10kdmt9qAapx+A7U00d+dbCBvO+GGO\nD8dgid5lsY0thf9a1jbMci963BKbSSHrARwlTJq2fqCdhk88xZszhrFDcM/Z\ntOAnTwh1lqvLn9z9Xu5iTrId+i+iAbi7P+LeZHOzfnJN94V+iK+VKmP18djU\nqiaOB+M9jEzmUj0tSK9wesZDlMFMQoNtf+jkuryoHK9PTs2FNjfbrnRGMruh\n+H9TyOCTW1bToi7abAVmybD2d9bFPw5jISO4vnSiYUkfoqdCqMeLe1bs7qDc\ntm9iN12Qqhdt6r6rZg9flowyIf9q8T6DjiRV5bgLRT4Oq4w/g5kTZqPKa+5H\nWbeit4JWqpTZyn3HVtvYI68KIqvl6HG6jujn/oy4fRPbO5UsCS/P59KHYNcA\n/zwPzhQiWLMhrV8kExD5u6BMih6IOasVY2FfPjV9n8IZicJLtWE4Z9xjO10K\ncuNbO8Qt8mxzbGkpQiXt530Ak6boFmeJXJI2fyF4HxPJtdQQo/bdKHmGwaxO\nxWtq\r\n=pJZJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAI0jRi2eCvMtEE7L4Qt5mwzGdJnsr6nN/VVJmJreVo3AiBzH14H7rlBzM2It5i98T3zPDkcpeDj/QdmJ/+8IwhOlg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.0_1620070819433_0.6495426425352868"},"_hasShrinkwrap":false},"1.8.1-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.1-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.2","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"2cb561aff32a80256ef92f48783ea49e66ba29ea","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.1-alpha.2","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-3AktnCfP8MXsoO9CNqfrghFg64u/ZRy/knsVwgKGIFs6gj4/UFmHC66Q9hzUVtmGWHDzdLIvkcfJ+1kAUS+5DQ==","shasum":"9796f451c45ccadcbc05651ad38d059cd76e3a44","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.1-alpha.2.tgz","fileCount":1438,"unpackedSize":32002602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkuzCCRA9TVsSAnZWagAADpoP/i3FBz7RhlhMyDVGyvx7\nWCgHtWa4IXDUV7f+qf2ErWhUHBRFuNSbGMV/uqFuNVXXA3vP7PYkGOCUT4xq\n2h5SM8XqrIb6Rhfq+ms1NHJ3n6Vhvq4px/Qavud1Ki9Xf/iEUmBH4Fwrdbwb\nSvx9UYnSYSZgxOOhKnOR+bkr45jUIoQ+ztegMoNk05GJFMUBNcXe1qDuTJpO\nhi4S8jFBANUuDUxx7IXNBNynKtmAF6RzN3zXbYLciNWj6xyE2cggKZZaVwbl\nBaaERQc+qXkogQPfYNNKRxW7QBd1wxdBJeNzkBAsUv6zzsbKFEHOqEVrd0bb\n4ksBuHxXS49SOHSwprlVyx3KZ9oxzDv/OAfzofGG+74DaFpZ1ahRjNSyp2em\nk9O9hetiKVAxKFgMpe5MrXW6i32RSukTDeT5juhNPVttPwkMucGkghWmJR8k\n6QNsKqwRHJN+PYK8Z2w7mGdWut1iUbUHymbJjKsvDSBRskCESjvgNlOfxt2m\nolYJJyuY00SyBjWbWstj1yWSNmGkIbHwtnd3DWoiO67R96k04FO7fiJV6x0l\nKlrckheDjKzW8J1o/fPnXiD6hiUEc+na5C7wF/ogheAtxR6Ykuin4UUPKmhK\nnhXSjbBsJ2jJDZB9TNlrluldXYNZaO7NvS/V81O1SqOaHW5qx/CqoE/gMnY9\nK156\r\n=m6a5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPrj1bZYCmcCRdISrK33eE9qSYx24srGC7zkZpdhANWAIgcvyMw5qnNvxayFFw4mYJlem5olvWUFGXhXm763Z6QqY="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.1-alpha.2_1620241601444_0.9978248986748817"},"_hasShrinkwrap":false},"1.8.1-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.1-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.2","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"07b8135b58226a33858eaf4e3a4bc5591009bf0d","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.1-alpha.3","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-xrv3sdmm1qG1KUga1ql9m+K26j1QDoYJTd3j4tuPPrhpNEA9r4xd8INvPVo/2rDsThTctJjRc8lZ92mSL4IUAw==","shasum":"02e95fba43d180f8976e66c12d19b20e43c737fd","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.1-alpha.3.tgz","fileCount":1442,"unpackedSize":31769361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl3LLCRA9TVsSAnZWagAAvDAP/jA3+GAcjHUnpNgbCuIs\nGmSQfGftiM1iO00C8idecEMnQrwcgzZr9rHXa06RYMwhR7nst0Q6v15dqj9v\nUQPuXHM/6okIvMF7eH5w39PfsBakjGbyugg74fMg429QWP20wuoFb5hb4s2L\nctAPT94tzbJmgVJfHjV5oN1kwMkJCJymaLWZrIc8HcGdHXAXzH7pnqjtmrDx\nfcZzyxVKMT6ht9TJ/4zQnPqaztnqmeDFm2BswOXiJlYsVDnzMSdpeDdTjPGJ\nEYcy7bxGgSidllFwOLU5O2C2HCcRP6YxGDKAHBvVC1UtfP6QADijslITX1wn\njuE73yKASk6oQrvrxXjyURh8g6DcU4009ibV5BV7Fz+yQdGWDSY6eVwQL12Y\nCAZqrzYSUlPfo6jFIogbTzBVeUD9tqCOmrUfoSYzXsnllA2nBATayjiQZXek\n2xzY8+mZ//Hr+A3jR/JYc/s4f7sx7MdrRpPRp9dFUArE7W3DVGdtdBCfz3jV\nk+uSEX2vJkmoHtXrE0jJ+0HfEDFVbaJROViOtD4RZJuDSxqiB7NGDDkMsBln\nV4Mxf2Ajh9ZgQ7MNxw11EBMos790Pb7OPoEQ3sZysxygZ3iGL6KI3kCHwdEU\nZ5aGeQ9ZGlexl4C3R0ZUKEpWZ3zO3E1bfq9f2Qp4K/2R6Fo89K4lDn/+7nk0\nlS8g\r\n=nppH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5nOZJMN0L/7yLyMeUXlwTKn3QZ+i3ojkowwZdaoAuPAiEA5K/GXA85w7A2BR0zrID42Fzu+IQGAJPvqtYMJ8hCiyA="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.1-alpha.3_1620538058969_0.22861196177893417"},"_hasShrinkwrap":false},"1.8.1-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.1-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.3","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"e36497486847696612d08a1df216cf87837209b7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.1-alpha.4","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-hMieoDvMkmHP891rf9KrzR1oOkY7LDj2IsBMm7AcmwghYNf6Xlr3HyuDnks3i8kgaw7Qxc1biZLi++vaOWqBIQ==","shasum":"11f757ed52961dd216e06910aadd86ebc048b2ef","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.1-alpha.4.tgz","fileCount":1442,"unpackedSize":31747295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl34fCRA9TVsSAnZWagAAaj0P/iuCWFs5RDHzbiAVVuzF\n/C2jfe29HrO7QvzLcLzGj3vqeURQDYpJnP1erTdCZovqyDhB54O1St7CIgQI\nPJjuTAnFRsxvp+gTVHMSjZQeOdx+IPfxiE6f/72oArSENS1Q1EqjKz0RHJ4t\neXF/WxXoLV+pObNSNgqmBBWf1bjFeAt5Rf1EkEhsNzULIEx3Vhe9QNi5i8cA\ncgaCouTdYk6KtorI9W64mtKthHbnvC/Y7sbL/ZxX/+E+VO6orutZThG0NNfp\nQF2xG1eFGZ8AyAcAm2he/AqJ//Z0GaOpFPcIw+fuygDjMfeIVZRgacUAnFuE\nCoE4otBYVi17YoURBuYcBqFkMwUcrb5ay3h+1TMWdp5EMybognjgqqQnFUKG\nLReWZXTEXQCOOFQOQuPO+xNd6g27k809SLbIpVQ3kSgm7/AjH5Z50OPMsT6S\ntFnzTyMK/5JZQAEjGYRkp17CouuUc7pF4N/j5zsaLwUrOQC4iA9RR8qqr9gI\nmmNPfA/XKwQJTlp55O9/cEPyCBbFmg41bsvohFbTFTz3WXH3rf++h4GUJdb4\ng0BxFh1S3X9cBNDPSg+7jpoUHRMTY/y5oQZMGq6wbWHwSEhDzFNULvKlh+hf\ntFLqhw87vRwv3ZEr3wAVcICP1L/VTm3oNy2jlZ+RGD855nbqNF6GFCgT8MFY\nY768\r\n=7i4F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDw5VkgOnl3XpvbKqeOGv+PAfmYXxZh7NtlED80mPZFrgIgSLjdfdyyw53S19yH6Tw6fQ07boKsY+gZOCl04zUFI54="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.1-alpha.4_1620540959287_0.8724982084622828"},"_hasShrinkwrap":false},"1.8.1-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.1-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/jsonwebtoken":"^8.5.0","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.4","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","jsonwebtoken":"^8.5.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"e61dc3cd54bbff25e3d918fc967d0e08a2784f93","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.1-alpha.5","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-xSDAdpzNHkRoiOOkNmV1uPoLkXgVRdhBFg9HwDBGwzVIvpYUl/u1s6nv6tc4El9LkMTSpOXPk9Lf0DEAt/BjXw==","shasum":"f9f574e32d9c6b2be8cc95008d5b8bc0f36e4feb","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.1-alpha.5.tgz","fileCount":1442,"unpackedSize":31736738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmt74CRA9TVsSAnZWagAAuw0P/jYZlYVAkp8MLygy9ENz\nEP35au+6SAz52pjtd8Vic8XOYJXjx/IlRdzQr6iakalJqbFe2ZK3V2bwjbK1\n8DUvDI1bvWeAtl/Ml7lo57gOWExJskrEQvqHVIimLypDbuQFBbsni8SFMtDI\nJ3Bgoa1aH89rxgCeh6WvKHGYYK91QW0RM3pgMJT+bzzjamfkFNAjgi3JxCwi\ni6Z1K7tfH57QfGKZS0SxwrmPrPe6VpBPAO3tbwAG7IZ+tPuPTwPO7hQ1F7pI\nDX+JRN9nPWQ3Vyq4HZLmoQCNV80Zk78nwP6c+gP+5E2njBiGmxhoZ60a8f5k\nlZJxIhAZJltZff7WGkJy0ZzFkbWfeonXUcrkGA33BnMgY+5ZrJcmG8WTh1b1\nJ29P8+39gBexLQSM52nGwhcE3ShtiPEW7AcpfHP8lYaHC3WI6GjDjclL1+v2\n5oBGU9w+woNEqRZUBVyEEUprxI49mA06MnoUh/7A+HRpXkNLrNPeIXWen78Q\n8QnN3JAscW8MqiScB5CpF/tcJPhgZeHm0Ydjjd6nO0PxyQssNzEGnOlVvzme\n3nufVuia/5+CWyG9xm4cWKKFBh7hN1eTDAoaz7b/Rt0xtgbo+S6+j1ucTBon\ncN5cHqzMzuSegSqf1A1NSZ7z4HaNm8D6XXV5whfE+Gs0d8xh2vKzp2QExDMA\nTBmw\r\n=5DZ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2d8WK2mP5vqt7rqNY/DSQy5om+QE0ywaP4zCUgebr/AiEA432bfCo4SRPNrdKwEX1wfwqcwdKzgsCVaeBg4HLc9Ks="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.1-alpha.5_1620762358541_0.9432715050796634"},"_hasShrinkwrap":false},"1.8.1-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.8.1-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.26.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^3.9.6"},"dependencies":{"@aws-sdk/client-s3":"1.0.0-rc.3","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.6","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"35d7b63c81308a42e6709d4eaa6717d87ac9a8b3","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.8.1-alpha.7","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-fbXhSEM/4hl8ysV6Us7a59mNEvciIUTWEM9K2VaNTxmF/3ncwI6vuT4lgBb+J/XaOizwHVtb+WBI4HQW2n++7A==","shasum":"46869eada43e01867ad80c44cd70a8d77b0048b0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.8.1-alpha.7.tgz","fileCount":1442,"unpackedSize":31717816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnhM5CRA9TVsSAnZWagAA1XAP/0c5W9TDQs6t1pV/FCPz\nw1LZkeKJ3bVYrE1yDDbK/yFG+T46xlv7XszMpob+B8cTrKgtjJJMROsS0tN2\nep6N5j7Cht6AMq5B+abnfp6QVgRLv86yk8PSHvhwDesCtb7oCKqN0hdD7jKH\nH1z+tw4DdWht8jnmgLYy9uU90sIffQVOwVWICJlgE0lPxeuDZDJj2I40VW8Q\nj14eLNZfKTXDsfpz2zfImBqhg9QzSuBPODqH0zBi2mFiY8wLEonf9wJhEwng\nBWeEkO/1ulfAFqVhugkv/kaH2B7BcqhuJ32sSTLhXuawy4WFmScW0E+rxOuM\nUDBOnGzVzc8teCZ4N5ZlDY+hEqB92ZXhJb5ojHAkhUZVANpQDv5wdwstXlfg\nF1TebmJ7GHy4sIqPOZtqu//zjrFcOCo1ngJeVUf1lSNnkD3n3fjzm6FhLh9e\nObL5WxaJ0v4HE5L+wx4h/8/piyvbIaSuZHQMmZn4UF6QoXMuy+LdqTdzeYjY\njH4PjD9fr1Pi8fkfug2k7l+8p3YriJAgn+R/1x/PkkhwrPjU/F6BJsU6ZcEW\nF+68pMw0Kwlw//6+89Us8JI/vdVO37/GtoCdoikQ0xfa/NQRCMxBBwZAvGOz\nHXHTIKrE5Li1P8YN0NYQX433sb4jIYvFx42PDNnc5FXg6pSOgUdBinxLyIam\nuC3F\r\n=JH/a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8hYGNPD+/brMEvN2bU+ICNAbGW6MRy5E/5Iob2uZnwQIhAM7GYXUNXluRlcusDIvb/LgfCkI1XI350lEF0L409t6E"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.8.1-alpha.7_1620972343888_0.4376290351089067"},"_hasShrinkwrap":false},"1.9.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.7","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"b96a98c9449e52e6255e64c252b557f2a06e34c4","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.0","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-eX7f5egptfT6H1D4DsJJZHJkF9qmBP7vS/x4yA6woAh38J6x1h5Y2wHEYwgcEjOgvyRA5J0n/DgNgH8eLx8M1g==","shasum":"8a95ee826a7eeae0d4a3b4df2ddfb52d3ca96912","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.0.tgz","fileCount":1470,"unpackedSize":33231719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpIufCRA9TVsSAnZWagAA+BkP/jIjnFXgaKuVI98cTjzQ\nRMZxUy6iXulLEzy3HZbruJeXyrXy6jxr3IUa3M1sVlso2Pur+vhy/KFssGRf\nHbrhuaRabHup+J4boHS2CE022peLwDvczOf2/Fd1C+PhqhMaw2lm+bRXtXOT\nmTjCQnenxFyE+5j0ORQJZHRPigsFmWRlFipL5ur4FsR5hcB+hrdr5C55bMh1\nsbRiKbE5rRS9M4T9NUkXCvRfQKusJARKuSGB5IbEp+lAwZGqCoXr2oQiJz8h\n72RrqlI12+NT9FLBnPtMWSAv0rOlHyzpghfWYf96PbWEmPWEjSMINeVQkZBn\nspEkvLjJPHQfEZkKg60tG5qLyS97rWSJOKHwJsBjIknd2hfBNNf312+Ui+sW\nTQOrBaaPd0HLrqzJihG0+h8RUVlf4sjiI2NqTKIfR2M+XrtZL6jgJUeS0kW8\n+Q4ONNtTduAG6X+LLo24kozAtrkgZSNy3i5ZBWgalWE4+GUQ/3D3yx7l6rkR\nerqeFZf6jllY76iX/5DDeAOpRtpuapMu1RQUjhibXLjidlYUNbUcCmf9YRZ9\n3Zs8RBkHjRE6XnezFe6aLVkqbrG9acG9EIWrpZOYaJQ7hSnGUGNyENd5mTcX\n6Ww/f4bRdbmWoeldfS4R3LsjPrct/B5g3oS+VQOyH1j1x73o/2e7kBhVxr65\nbrQ8\r\n=qhTC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwpgghDr3DZppYRr4hVHw1qcuMAQBH+APoJ2ogpOsz5AiA74SWMqdbnP8Be7SuRNbXK96nEnSaCI8d5eFIMX6I8YQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.0_1621396382768_0.1811133892209913"},"_hasShrinkwrap":false},"1.9.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.8","@vercel/nft":"^0.9.3","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"2e1e27b40abb0e3c6a6fef3708ca76f6bb679ddf","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.1","_nodeVersion":"14.11.0","_npmVersion":"lerna/3.22.1/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-mye4N5XTX8hKAWtxpnWK/XUYtey6/zq4/UrJNG0/6Xqcf73ATMtk6WhCIUBdi41MIaDaLDaSCZVT1mkcp+9J4g==","shasum":"5011862a9c76a269b487cd09ba8abca5c1eb9c12","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.1.tgz","fileCount":1470,"unpackedSize":33216016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpdF9CRA9TVsSAnZWagAAiekP/2IspqhtfoCij8dhaRWg\nIxQhWEyBLT5EHokE7v8tHHtq95W81LAjTPnPdHEPS5orC4IxGZReXytB8JWm\nJszSm/qr01+80waJKmjcC/z5QfGlri3XoBhWE17DU1WPduLRbghMufyfqplx\nvT5oNp6zFtiqaErbPJ+WIhw4q34OWcDvnwV3P41LpSecSQn4z/emHRGEOh3j\n4AsRbf364vDFJ73w9rnNqEdk4En9kpwWzes5WP+lBbylC5Yoj8+7n8vJKQJK\ngTunz6Dkh+y9c7xdq2pCqkjN+ky1e1NHB9WD4cf0fnw5mw5G4gbHv6Qrb5WV\n/F7I+tFAxcKG5s/aGloaLLb3s960LX0WAk9gEPu9VYF2SzkDJzj9U306hQEI\nwJfdWAqGPPIrawKWpYJqy6YCtyVF8zPs47x4IfT5XosioD2jGeflsKpMgEtk\nJ4EbC8UGEKhpbG5Lui8WaDAKZ4obAqZeCcNThuMxdM7hhdeqQ2b1soAB8Vi+\nOTzORWomf3lWzakkewyA+LX9XMxFdSYK3CaVGQPyYsUfU+STsLw/08g+yxi0\nwBzEUb7qfSrNALJGLbRIt6tC8rzNugmc/XuQpwhs4SdF69b5xsft0RwwHRSw\n0P0wvU4/tlOWMszn3OY3ba56DFNuEWKhvgPqOXpx7R9Yer8I4wwv8+D2ieOI\ncKO9\r\n=b0GE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF6AKUy/UXC+Uj8zmKSXNg/vp3RAx9jZP8kRtxiXy3UwAiB31F/OLRLyBBkvR6a4zga3zPiGzW0oF4GQ3B4b+kwyVg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.1_1621479804573_0.5942541545404616"},"_hasShrinkwrap":false},"1.9.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.9","@vercel/nft":"^0.12.0","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"ff4db1b99f13a14a7e967d5d033854de01df4fe1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-yyGIlTGYF3iWw9NPeUUAgU/bKUe6o1Ome/noh3qdxhewAccRn+plBPrcLa//4q2MNsRVg62ASBVIXvyv1inR1A==","shasum":"bf18204ae3e3284385e901271f26ce584d839f1f","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.2.tgz","fileCount":1475,"unpackedSize":33189668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpvE4CRA9TVsSAnZWagAAo7oP/1EGFBi42GN3GddwrbrM\nU6BczBa76C8vEGWrYnQfowFFGZVw7B3FeGMystd0y9h37rMyQDOZzQm5RWwp\nLqIjsLexSniaKROnb6IBS1hDxpoBKM3iXVbKK9WfAaoQewXg8lMBV7IKGoGU\nk8lBpwZiyO8iVwV+0v7d+BS3HPJGeHgsAs76kf5sdePxPh8W7i/4c8qttnke\nElu6AcxwPtUkCFBE7YfnkUxkLgCqsZdzl8FRhspFm0VklFa1qzP0W6MQfJ+R\nAShkDx9OYcBlZPvJ5l8MxKkXiI1JGx3vIXNd1oaT67ujxt4SjhUfva0EXHVP\nmMkrkNNEIYZIIZ1b31+8zx7f5vSYkcwkqPwDmNeLLY1wy5rQlNCo0TbRuke/\nMzO1FKTyYcXB1qmd7/jnuehKtrax76V2FuKQeDstEQb4eH8V3oFZlIq/jIvI\nxERLGqdcDDucfCuaBqp9bhVgP0ZVVDR9idjhC0KjysAqLx/nS4W4roWHClpu\nI4qSpX0M8uNW8+2aq7+qMngBE2rCAYzpEsu8oZJjKbEYdTvPAc1nRokiTxZ3\nAEX++whVrHY07CK1E8ml2disGm6oeLfXXXGvG7PmvisDyJcN4E9qdO+beMWw\n65Zpzu6txxxcoGpJLmid2ao06TY/FcxXWSbpTCZGrppDUtSeuuvdCu4WT09G\nwlEq\r\n=jJLI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCloUhjbrX0iLOw4gR7bJKbxWL6sm2NYoyQrIYsDi6VYgIhAIf2MeuIwK/W6ea5xt66w4yQnCmBBxweAGsY5j9lOWbC"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.2_1621553464124_0.33034838968146674"},"_hasShrinkwrap":false},"1.9.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.9","@vercel/nft":"^0.12.0","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"63e533ab2ee7731ca17421368127c9b7474a70ec","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-mSTzAi/FCT9lKUMho0nJXd1+qHvf8xF9nzqC4YWEGxBoTp0xxNgUlwVigIhuqsMfsa2E1GzJBUeJkqKyBkePKw==","shasum":"b25ff5219008fc366a154e311c0559ab3f1d9428","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.3.tgz","fileCount":1475,"unpackedSize":33190348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgp0euCRA9TVsSAnZWagAAm7AP/0+hdk01ShJD1zJ8lJCr\nwlJXHzY9Wk61rqceVgD+oh/rBulUPeaqEWWAj/pgNZQrP055uJ4/g1Q2dg/A\nRhWkfO1cnpPQodtGvBJ9FzDWFx6HopAoxCYFM9Ud6JdyjEFcSvksfHy9hE8j\nSBrkNjkjf95gGUJykbHAYYFk4lB4SEG9aVB+pD3h+yw4cknw0Ero4Q8Ov3cC\nuVAyLPZHGVXkxSoDE1rkgbjf9N60UnaknOU/G6xnYK1/tw+hL96c+1Mldgdd\nBu3bGLMfc6JSbVSujYcg5iLD22kzC8uc7Jzann9dstGqyP4YqG94uYnJkHuB\nCY+5knQI7A77z+vHxD86VVuBY3iphq1O1JYZbr7vjwU4/6el04VVvhD2Nr01\neS9UOqSN7jRaIy5O/Mftz7voibhCRVLOE6aAokZEUgF8pYh2ehK14lkulN7+\neBrmDR0QimrsfxG+1/mulGBdGYppk3uP8JWmJnVtZoXAoRRRaYB8wOhWf70x\n4/twCYa2tMLhgZxZqvmBZzdKy0bQjARgbSMCjojbQqppCATY7oNOtFevZkWy\nKY2ZJwWg40QvqPUIhmHMKMZ/yF7gBoeJk2iz9GEsE+lJg3RQvO+KDYD+oghP\nIR1/hCtrc473h7QKGfUnEXKj6Zx7VF3q5+r4vH8LluMPc+aDTMdYEBVHhpuw\nJ4Mp\r\n=S7w9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT8Zk7d8se1evNsZtY0fod0rILKlXy/kp8yvB6q+thJwIhAJjbkJ/xLexmJUmwdkUZPNv4ECaiyNT7//5qBwQCLQnK"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.3_1621575597619_0.8970593965605902"},"_hasShrinkwrap":false},"1.9.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/cookie":"^0.4.0","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.10","@vercel/nft":"^0.12.0","cookie":"^0.4.1","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"4308e917f51f3080645256d6bd5a95d920355bb7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-HT3p/gW2TV3EZvLTYJnRXEU9tIv+3+hjy8/90Ws7Vx1QSvSBRZQYlX9opSr/rtLPRJ8izzJcYQ8Hb/sbMfvD+g==","shasum":"583524ded2af2138ef8a058caf23255f33d6c95b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.4.tgz","fileCount":1475,"unpackedSize":33190284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqAeMCRA9TVsSAnZWagAAnzMP/2YXW0Ip2fEZTh5ImJLS\nWfqUd2JFv04Z3mAoCsIoxa2CDcMukXl9FMXNAInv5uPFZS7nG2TQbMrY7BGM\nnNiVJVb/GiFxREnP8at5h7qygKm3pKTY/10dCv/LwT08gx/CYZ+YZGVgL7DS\nJPDjFZx/avetmUgoNXaUYxcim/iIpsNjo5op4a99fpahxF+DDnL2UQVbIEMs\nIaPE/vCw8QEpyoKMCuUkbTLDEl6ap3y24h4zozB3ONo/eq+ABmnZoGlpgfHU\n+SdDnzK7tDXE1/F1mBnf+nxKXg7T3QX/A5KJTkaqWF4EdOcLf7Z/7wpwhNCo\n04EYT7FGpwkm6yJi0lBLU1Xma02eg+6XBJQX6f2Q6TEbreTkhWie67nCEdOy\nFAmA5YEpchghssE4Ipub3/9TLU/otgaCX8J0Rx322EHJHuLpo2q3ogbLKPw+\nhrDaDXzpc8mTNSDoFzf0yNjn3TTSCKiRh9y5HFfhvgdWwpnO0Z59ZgZfqba8\nNiLeT70SQAgJPhrBLganQjeJrIQL4Bqpu1t+AWmEWUvGa+CxSyuSu9ge5Ohq\nNxz6rBpNVFJHzMGlbn/sRtvyHcy2+0xQ+2QNLQ3sGs4stXbOSoo7iBGnqx2Y\nAwnLvFjB9z3JYaaP+FFoJRd4VNFyLbLwCxfTCTDhIed+Cr/Kf7+c/MtCN+IN\nSdy0\r\n=W1j9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCivX1aez+5fVh7k/bR4Aim9DGKcqCTRXnBYJGNBsSWAgIgTtg0z4yeOTXNU7g7X+myES26+CfTFy1Ks0EtOETHJiU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.4_1621624713871_0.27290719343393777"},"_hasShrinkwrap":false},"1.9.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.11","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"98b1670652fbeddc3947a4a13b9d45bd90c43404","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-g9Zq+9xhpCzhJ2HtYvvWazpCVcsv5+zaUpmUY2ABnL4eMnnCzrCjhpJREBkKWT7lxDoGMpQNcSCuFZE+Pn6Btg==","shasum":"a0daa7154e2523ca6d9b9973019af5457ae3b0da","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.5.tgz","fileCount":1475,"unpackedSize":33190229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqpsTCRA9TVsSAnZWagAActYP/jlUaCWpMwxK/Zj8Mbo1\nJNxlkAPaHsTUwM93zVXH99ZXtetgN07jO8UeVEHaTE/ogymT/8iY3SXQ6p4I\nOtRQ4NhSo3whSb0ga+adSFLr1ddpnqFeepVqpBkHPl35//YLWfzRb6FWrUEy\nvzngZg3JYAez3lhkunJfNL/egv2ngIrecM6t3Ob+JGez+Tab7meZHumlI9ef\ndhTQGPXOrQDn+1VESuAlHuFeTKzxDvc2leoKQyNKs86wgo219zWe669aJ4yG\neQQR5juK2g5yLe418QON8SmiqwRa5FD9qnYtb8fV05cq4eSaFeS360kmCkKG\n6Tooo1ZGEvBbTjAPdZCJ2wYw7gaCOJ7rm+dFM3cTPu1/vkYYfc2E7Lb+TtX0\nVQkuXfiW7YOGudhANM/zQlmwNL6z/apXFk4lro/6PKZ4BHlXIhzLG+JkjrUA\ntnrnAeoqRv/jYfQKinWE63TLcBjorfsduc1RrQ7pp+a6jVt8xY7DjakEq5Uh\n/FyksrVooexxmuFh6EUAM2+t9C/qfrnk4h7NxTW/K9ey5k2Psr5RzRw56YYa\nEd8yWgLh3aRBgeZctHY9k/zRq7p9i9lS56KhjgIr4PNq1+0qkLVmQV9tUYFL\nnhmpfRN1aCtHF9J8DLT4BfmSrZlO6WzrMQpUr4d1NAHQDmJnf3IL253PK4CB\ntOtA\r\n=24PK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIDZgxaKngdZEKrbdHRKMH68o597SR3zmBZmh1CElhCAiBIeEgIAZWxiu7Pib5Wef8j9VeeMR8pGiiSvMZjcE9EnQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.5_1621793554555_0.43466284992587845"},"_hasShrinkwrap":false},"1.9.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.11","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"0f21a512b2d836179b2790a0e6cea8535148cdcd","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-wK6K5Sb5OtBHXgVd/XiinJyHs98jDFfdJEWrVYmh5HptipTcqefaPT6RHpR5Zgg4NlRos1/mNiv3frVfAuF+cA==","shasum":"1df708dfb86f206965687b5d2b5ea961ddfb2cd6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.6.tgz","fileCount":1475,"unpackedSize":33190229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqp/TCRA9TVsSAnZWagAAgnYP/jqKWB4o9MSprCUW+IJA\nfKXHEHkBUzIWubYoAKzWAknrF0RpDha+FVhREG08QU5+tQ3bEJPoAHIjdqEL\ngXuf6pD67g/5WyfYaVZT5Kn7Lo4y3AJH5X2+fTbSb4em+/IO9Luq4pOW0Wg8\nX82uR++cCSI943aGfxhcvSZMN/ZO4km7hS778vZ2p3Z1jUGsDyUXUuOC5qMr\nCh1a50X/KXYf2YGvCJ/y5E212PHzmwrnUzC0V910AByVNHHWC+fEHIG+PE2z\n7mEwKSDKmfoCwHtUMrudrlvvdaIccmYJt4kd9boCyuTsz7bENMaymjZvEM5F\n4nro3sxNeJBZiTRHDb14iZPXsbkLdpf3cAIEjxrUTeo4JqqIl6RYt8JirLSe\ntF8IDKPTaoZ+EpvANAHNxAkqy3fo72CBEZ3Tc2tYdeSDF0p8IS3SRzBPnl2+\nT3psxfqhDdge6wiUVQUtkg/4fjAjlPOlOftiQvKWoVK9nv8xh2ZYuNdVUsVM\nUc0qkQx0owOjC0UTlmZn30+Q6QkjmiQbJWCbYg+7MldLFeGsSF/S5aO4VMW3\nTnluhCZWvUuVPi/oDjl5Zu/erkjCm9utba4bydnkrZWJIjgoKc7KnTwEfxHa\nTzH0ku8I5yvJTbbDDuQbUJ4PTw8AqUfka8++q70oTjEGaOSmnzVo+LN63lDO\n8KQ/\r\n=REQH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7/aWkNrRj3bkGEL8jvPE0st6Gi54io1sDq0OXpR3lHAiEA2u3W5i8/gpBuEYBH7C9CQ5YFBqkGwOMu08XWK3B+w9I="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.6_1621794770636_0.8122906068133469"},"_hasShrinkwrap":false},"1.9.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^9.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.12","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"af4eb5181fd4b72eab9b0f44b7fb5cb454faed38","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-2VNLfoHGRgjT7PS5WGcu45N0soD7RlfUJvNxDaqffFufC1TtgORGzDlc2KvMNowavj+84oD0OMtjwExKGxg20Q==","shasum":"40fa836b235632918e6ce77272fb9e81b270fc5e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.7.tgz","fileCount":1475,"unpackedSize":33190962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq0pOCRA9TVsSAnZWagAAX5EQAIE6o0i0TFdtIOBBA0i0\nqpcfFMyKQ0uRh6j1Ix2wBpR5vxw+hChSOq15kS0nlB4Op1Go8SnMot3JnC8L\noNYjyibwbZzcnLpVvp5H1t9yowD58/K72az61HgeCczkasnjfE/QyVL+yajL\nIjQvSX4tFGaW//oV8K+LOgFz8kMaBF9dye1ASUPu8c7Jag6HXZxg/qxdPjOq\ntDzb9FmYtoiVb2G36arUBKw5e6kfQExoXZGyJHtn8G5+PSvU1P69OrTIva4n\nqbqNKsBpvDmzKlsE6e/UbHsVlDBkTKVpF23GmY4eiru8ekONyCFOXmowmGAQ\nimoZ18S0752LmLN+AF5Uz1MhALgtCsrtVgiph5CxV82FqQQUqQwDDEwCHGhH\nGYFuJ/w7oBxUSeBp2nAt1tzBTQAQOvN3FUsLObstju0M24xYiswruwunrv/v\nTiAI2s9UkG3tcF4UbRO2uWzekm1kGFPIVnvHck532xgGSCugnOy85tJUetLX\nLSgrZQWJXMbr6YCYqH3ASt/xZ2hrerEvdddt/TzgGEz7KPQ/ezt+PnwvP+L/\nxzV2o4kVSAxhpVCKvzOVVABNStZAiv08PeLN5pQPZeFE8VROD6eYvymDiRpG\ni4MslnmLXJappHQtLW/HJgNG/nX24EIC3JLCXJZFcIc6k44Dls2rQr1g53Iv\nlsuD\r\n=QiM0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkZGrsP0539fGLDOjUY5WdgLY+DBFeWZ6B70Q4+bdbMAiEA4qNPJzvOD5jp7PBaq/+aYaJiDHrE/Zrr/iGlCx9C3zg="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.7_1621838414017_0.37416070269917046"},"_hasShrinkwrap":false},"1.9.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.12","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"dea13e9c0fa05d7e264555ef84168ff2792fefc9","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-bmdhZYxf78NfwnwVKeoR8O9jngunLnsmbksGhyPcq8ozB2kKhWbPQL27EghkUsCUCGxgo8PfIOn507pb0P8ubA==","shasum":"260877a375fadacdca1d54a369694d6ff6b50f14","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.8.tgz","fileCount":1475,"unpackedSize":33190963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrFCcCRA9TVsSAnZWagAAGIgP/Rrt8JnPtkNcEkhfxPuj\n7MDlaRbgPDqE+5qZRnDuIFp0ge2QRYfrOa1ODPt53IAK2rlWUjABxGZAUKUL\nqI1XRuocmCyCVtsWqwfpXiL4PhsP2P0keKp8F19co6CbYPblm5z0gw7Q9Lmi\nnLca/amCAue43RAEV5Y50q7PSVF2U2+fhEWkIKPXStiG31V/+RuAIvZaP2cC\nNZi6R6+qNB1d/5gamVzJ1ez/1kRtckth83je5JNYCN+W6uwxslYv/UP/cBnO\nHYqOkMFg6xJV/y4ggwFgqB2BvRXsO+DJbVy0Rz6FW5CsQnLiOiXrhQx80lQL\nQUB/4Qo7Nmf7BLqNvzxySxK1BwLZrVlyo9ZCpHVb2N9g35iGe/UUr6ajSSRL\nFce+XmrzueBM4THAoem61MuoQfwgUsYK7wltP/PWG8Uw8SjK27ESb0iTe71r\ntkhjXYlPzeFomxmtjUMu5TODzHXTTzun6eVPStgWbswJzKj+PFmwU9OQ4SE8\n5zDDLNtf8iG0/INLPJaTBfFeW6LUNeK95uG0Y+cAj5vJ0g7slJXPmoSZMy4W\n3agOwktP/udqcPNl5mt8l66uhYfYPUBpgQkYiB4VVrj/MGy6Pp/wMaxWc6PI\nK0LLUV+tIo8Rgk2ejIG8NJIHt0p44SGqM3QjiUVO2zLC+995CH6ni3Oes/VC\nEtY8\r\n=Gh9f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEH1BlflAUVc1b+rgXQiKsbeX4OtVMrJ8itUSeSx01uAiBKmd62hIHmjBKqksSsHZoTwfJRmqk8T2SHFs9wUSiEPQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.8_1621905562904_0.9424729870368229"},"_hasShrinkwrap":false},"1.9.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.13","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"74f64056fd0c89ae97a814c52393b1db24bb6aba","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.9","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-TLqNX3L5qQlB7OtFhTRkQ7Snt13ezyORlyvXSVcWXugoUQynKNf7t6kIoh5E7w6p8JhIAxouH7EAj0EGOt7RAg==","shasum":"57412436e4011509b779718682a6992da105bf24","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.9.tgz","fileCount":1475,"unpackedSize":33162001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrJO9CRA9TVsSAnZWagAAOrcP/1rZfZqUcZD9xcuemeDo\nu0jXS6A9YipIRg9LKspO7gH9PZM0xSpfhWbASQk3AsjowRRIh4m6Z5uohTPu\nwM8wsXhW/7aW+RKPee+M3gVXdrv3PAX4nka09ItWKskVkITvj60svUENONWg\nzpdjAh/eeE2FrqmAgi2tbFD9jOIAKxzP74TXpVYqN1Ht0djWRwa+ENhHErWD\nfSmnphjjkWwPzSNbBScEZDjO1mIllW8FrZaZSm0K2bxvZrHO+G/VtKDPYS6p\nbw866I8lRHRpwnC3a/07NKbqoqbO3Y5+wKfxyqW1vhGIkyAnGYW0oxm+1czf\nc3It+cgqW6GBDZYKNq/0xi04bHe7TpVKv+aDXHt3mRBQTEJfqSYa15FT9mnE\n+Vhr4f/aVC0g+ihXRFFBHzsexewhbWUQsk3HZIg5HmPOL41wRvEj2ShTcZZb\n1oLE8JwGN2MpAEDkwRG97EJ1nABQw0bjYVEfCFOES+XZGEnCtQF3BQwFfWnh\nzlAZXehhAzexoV+SEn9FlFTN5cGJlU6rrlhzAXXEzNZbKtsxnBwB4G0ZimSh\nsNjj8muaGsyIpEk9jPoKMfcAfqODcBzgWPtZ1R1JkBpRTKKG63bPca9k/TvK\nckTyxDerKM0dokYYDcdaVBnPQd/Sfmk1/8xTc8kQEztHDCUywM8B/YRPxnQ5\nAUVs\r\n=kSj6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECceBd8poae6EiKfWKjNnvHDKiZGfUPhC+S3itwNnefAiA7kA3FJSAVKUqPB7mW/nz7+Oy0h6CexVkmy6pQ/CQb+A=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.9_1621922748621_0.9896629118752975"},"_hasShrinkwrap":false},"1.9.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.14","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"efb13e78488b61834f6f08538b21fd94dba0fd3f","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.10","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-OXa4hQJZCjrjM1qkeGGj/4aC2MsieQhH+Vtt0FmoTuk/ERU/F9CA3g98LIOvXoBbM30IsoCLrD7iEqOFDv6f9w==","shasum":"278abf8cf7351a8f99d00ccfeafd4ffa9937e698","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.10.tgz","fileCount":1475,"unpackedSize":33162065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrUJuCRA9TVsSAnZWagAAVH0P/3eku5Js9kqnpkek9AiN\nQMoWyF8xxZVhVxjlsR80TI5qvZLYkrnIFZbPWx7w5R9kRFba/dTAY5tE52oD\nFhJfZwzAKS+vkwz5FPOH1yBjQid7VOX12Pw3kdRziwY3HFUpWdey8G84ZD8q\nuNeyQmigxeMf6m+42vOqbD/1vg/QI4/Yuj5DSsFzBb8V5LfuMn2ViawxF7BL\nIZWqAX/ZVvNAW7yJFvnJlFJrd3gOkqsRG+74I03U5sXQfd5qvwkHYeWnYVxc\nwYTfgtGpQ0nHpYNiU4G8aKlxWcOOC5qLfiZ2lHEksae9p5uVu44G/CAEb5EZ\nZTTxkAd/iaxqyB9XK7hZwVtqdm1Ki8t7t4/t9goly86QJthk7M2Y0NVhJlk2\n8rkaRD23NXhOsVbDTlZpMndoEzjVoRGRaw37+TbBbFsGMlG9zOBFVnWrFWoD\nFNRv+yYpfImhhWaMM+EXQc/hvNXzPIv7lBquh+09CFZ7m85CZeYSmCS98fYp\nnCIOvZkMeUJo7uRLI2N4thvo3icWEo26C84gvkD5AdbJV5KNSl58KHLJbTuO\nFUMbXIbN5+6HLLgc7akxtVBlBhMX3YRCnkdP+F53epmDvVKiwCNemyzHR4r5\nVFxpSpzb2nlXeOwU930sOLVYm5p9CyL6oIXfhIDYpx/vwloLs5PSN+S0PpeH\nSQ2U\r\n=bLVt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHC54X0RC33A8QsGd/bhCcxHJYolDt82Ndhjpg55ExhdAiEAzIcSWY9EUS6s5LVprxJTXR/hJUYigdFMHrShCjGtwUY="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.10_1621967469523_0.5694629493813104"},"_hasShrinkwrap":false},"1.9.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.15","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"a9529014e81b70926f119c58ea6c1ba0a7ed1547","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.11","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-fvdbKLKY5auGz82SQICZKED+xrJ0gsTe/gVf5qySFT5BVuPox6oyhvNbCeMa0WHSjgcBUXnl/Ht+byecdbRxKA==","shasum":"043034ea82a3bb5ede6e197549fe75b585c57a0b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.11.tgz","fileCount":1475,"unpackedSize":33162099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrVhXCRA9TVsSAnZWagAA+OwP/3P1n04lIYt5h7eA1xwP\nvhFWQjVuNciql8J6azSQIfY/xhLlPrHYg/Cmg9dW3j6Xyj8+Xaf5y6e1SQU8\nRpF2X5msYRaEYNpwtWRn6ibkWW9ckdBByW9FSnjOkVD0OHFEa2VQ327haJt8\nFVh+YAhd2WBy1BHhvfL6yAW5HsLhm6I1QR8nWLIk29+Hva3qkj3OIKVzu/oq\nIk1me94OmIWmm8tMvzlbaBRP9cYrYYCA3kcTVfdFVyAZhWJberIOwGHPtZxX\nxudpnyb4ozQ2HI+atWqKTX3M7rww65Q/+HZjmMQ7ZQxKg5Ae75EyEi0BX6Bi\nHAorDAVZ+JQYBv2W4c3PWVYoCaOWjdeQjJlZ5UYm5toyR1yNfeDv6e34F5Nc\nL43RxDLYIksuLeW08cVb0q86iHCwqu2ORyBDulppnxGN9SSqRU1Ts+bLnUK3\nZ6XrX9IyTVNc1UNNWQTEuXG1BrAqKlDx9wzZk/HwsElAQirYngwF+M//j8tt\nGiam2GAhPsG7zBtjCpakyqQuRg1a8s8pycL2RM1xAJN7R2vEjVZZ8uwSs2Ik\nOwNBoZY3MfSEUKNJAWDuhFdn5mUG7B6yD83/sBBALvv/gR99J7Wi+cXbNgJA\n23f3cwVneSLC3H2KHB4rhwESyAzTp51i13uTNkCaBsYAX0vFWOhCBnWNX6uh\nATQm\r\n=mqMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFmRhIepNiuIPrm9whv+mAcFVGSy976Y+yMWNlRGdbEAiEAv1PhabkLfoNVLMTbR7AUoBtpdSONWmJALW9ayQQCPnU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.11_1621973078326_0.04214096082784469"},"_hasShrinkwrap":false},"1.9.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.16","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"501788834f3487326a6ae46bec044045a45e6655","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.12","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-c3Phc3jJlfXMjaNziQ6CYP4ij4y1nDgY6VVxPsiQx9hmfB3R9VDr7/KU1OA7KhBTGyLSG/6oRhrJEHJWuBSNrg==","shasum":"f8db1d8ac58177c8f5d5bfaf2eb16d484d3fb073","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.12.tgz","fileCount":1475,"unpackedSize":33162445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrW8hCRA9TVsSAnZWagAAaYwP+QGGPjUknk6K8/y/9Fth\nxnfayRLMq9zZBLSlewsODchVQYI8PBkeKqJElTV+TkvSCh0kFYJf2hznbIQB\nBDgjkfDv6SJduoDQ/r2RgyYcCLvy7UhGYdPGk+/ktFMBU7H4x+7ELZwJoDZr\n7RuCe+qo1iUXDAy4m06Zhy4S/7iJ3QCxOdTRnFPSYqhJRoY6oi4iZiI/6H5J\nmUXwWO31jc2TVLnbLanQMDos4PV+uD6/UPRDTTWyYWtb4Vi2LQZz/NQMXCZu\ntZSoBj+oP6zfpQPjjpHouYuj05HSosA2E4dBkBOSdDk93IEZcH55GHL4UCGA\nAJR3Q6PI7es1qX95DFcMIA0eJhczvad5umskTwgPvPmYODoWWQirylR7xM9h\nQlW4cqky7YSg21rBt6rAeRVFP2NcqX0bOHI5uPQoPDHOf4ZbUjyKUZe/LWOK\nf54/WhGpKwr8KDkUiODpq4hRoMiiDIK0ca7KPFTQQRyGiSmAsua9Zljw4W6G\nerRGK/Q9cG4xeGLrdgzmncPVoqrFBaZy3hWUuymaurkwcIUKu8VpFa2YSzVG\nAgbDcGwpFu4XQ8/iuYq0Wk1NuFwzgpZePo1oIuOcZ3MiYgOwsYA1dE3fq0Gg\nGoj20DfU2tlc2egB5Hxj5M9Dg8aJeTGIahmjzcDXGgylK05/zrE/JF0VqVeY\nxbrZ\r\n=EIbr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2c/PDC3AZEutEVDCSE5OypKkHIZw5gCFaIlYdrbmFHwIhAL0CbEz8wYlQhsB1+rn+qBlSFOixYmuyV1nTY+zXMxwo"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.12_1621978912557_0.44198070370764797"},"_hasShrinkwrap":false},"1.9.0-alpha.13":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.13","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.17","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"2d6b94bd195080cc8d46ddbb86d1a4aa175d4f25","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.13","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-9ZF+gQZYOQ3VSvJf7OdUvPbLPw6m5HZx9Oyp6WlZ43RyOXafpvdKMhYA2iY+pkxGm8MAasdJ0wGwcc+v3g04ow==","shasum":"c0edda0dd83fe377fb894b6c4ec60ddc9469d1da","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.13.tgz","fileCount":1475,"unpackedSize":33162670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr9+QCRA9TVsSAnZWagAAZr8P/Rrxna5OelPOnmvMhNU3\n74awLuFXmV7n1v/75B/Aj1fC+JjmO4dHVPTlquY/AGQkSjwcGNauRSDZn9iM\nov4cyk2won1ZbBMoqGVn5viyKXxsOQzW59blBcciaRUnGdXdtDu+NabxsFvA\n8MshoqjQkJ2mJOf4r22iH4nBOSoG4Kn3TwsnPg/DAJeA9uVsowc6MTfxLb98\nlBzYkbhqsHO/uyMric2Y6XOq/FKKX9xed5AKmYfDTaNSFGpjfRpDTe3ADk51\nwxLrefyss0pAqcX5yFhq7+dlnwRBab2dXVXvFZJ7/dP69QMvEofR3zBRpUkf\nA5x5yw+7m92+m02wMkPifS7mC8202ywEWQXZkHhz80a1trGntNHaa8bVBOiO\nskp1HiR5giOEtqvjUMbe3spUEL5c9b3PaOPFvrbX53ZPyAo7Gqnzf9eonfML\nsTMtChFRW8FRHRus+BQi6oINcKPMSbJPtLMp1Pkc3KQzN+CgDtPHLGy8LdDx\nxYMdGtel69n8Am74RF8+TGjpDwgRgmUKuB0pVW+yjkwK3v30m8oC09yp8HDS\nbxWBI26iVnK76sMu2vm6TPuKt+ppuF4gpzfjF4q3XgC2qF4qiett5Hjbu4lG\nG9y68rX74DBtCBHct2In/D4q4pL3LleyWgr0Wl2hKhG59Oj3sRVHdefvoG3M\nHQv3\r\n=+s2T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMjd/5VTUumnpiDqHiFMTprPKtzUYoWZtGLqmwGJaGuwIhAJBUcHGDp6m1Kw1PPop+3TMXmhsR0+aAlXeWm5mgjvhV"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.13_1622138766682_0.07493807753312187"},"_hasShrinkwrap":false},"1.9.0-alpha.14":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.14","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.18","@vercel/nft":"^0.12.0","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"40c2f0ba22feb090151a813f5a386beab4272de1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.14","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-fO2CbqrjpAm3QEw7diqr7IVk+4aeHAXwOrdwxX6w1sxZEdaOaY973WqirPC1SzQu0IAPOeG1Mf9elk84yadmDA==","shasum":"e81bce83a1d5506748e59678a78562975790c4e6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.14.tgz","fileCount":1475,"unpackedSize":33160013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr+9HCRA9TVsSAnZWagAAZwoP/ROeNbT5M8zVkEJKH/0B\nvzWq0w5GQjc23AXzTcMKiwLs8C30fbfq4yceSci2TQq0zt/BMtzMyvTNov9R\nSbBoIQ3Hv7b9EEwViRnQKhyV7LtVaLB0hugUYMQJ3nDvZMLLlrkkfSBjqPql\njw2xHUxkXD48Q2517M6r0pnl60z+YE7o39Mq/asIjCQHvge4jqf/4LbKQcIB\ntAiioaYDxVdfr7NNwthmtlZK66AXeLDAS9lQqUC+mfbkvL+YrhYyURkJkXsn\nqzSpupUOiojMo2/36U0TaP+V0U/4RcKQJFp2RFlarYljPitMt6F4kCpAt7wP\n9J1A0MI6QtuUk8r5RRcwXGIHfleTCFuQrt/eyERpaxo8XVlGtkWISZd3J+HR\nZe+2BDIbWHfB6BMRnBik0qvQz3B4UaL0yHj3zRFIz4nrwIjcBTMnjSdpKIE9\n1aLiDhNbsCPeK1UQR9mpL7wEFHz7tvQNgWo8S/lxtWAmAaIzz+lV9tP7Tc23\n7fDcNSu+4lx48tIFNivbKY+YlL5q/MBPCt+VYwj1X2jHw3oqrObcG1i4e2j1\nEh1YDxLdNYPV/F+bhOuQKZ1S1WynwT3Dh8iD9ihgiE+nM9e6ptpplEhwdc7K\ntNDpXuNWeSu3D8BixS7OHZ8uhTy2gpbR6IrmPcVAAg3XrbgCLF4tdHEquZa6\nP062\r\n=eff8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpGFTPiVPvPyosM84/Iwj/GjnFNMjH7JC70h3jH0keTAiBugJQ+yDXy7sUfHETwwVKNR+wqurwiY75tcgugH6FV8g=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.14_1622142790619_0.5922808639300394"},"_hasShrinkwrap":false},"1.9.0-alpha.15":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.15","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.19","@vercel/nft":"^0.12.2","execa":"^4.0.2","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"f1f2b04d50b1b0e13c41e5b2e46da43b445c9c5a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.15","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-fPL8w8pCI93nHmbzY9bbKj7oPowuf+IdQYOfdML2qbgf+uWKzz45qbXV9rNcvlTWseHQw6fb5wjSlLJHy20epA==","shasum":"5159c684ce49332e278c37269baee9399b914a52","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.15.tgz","fileCount":1475,"unpackedSize":33163060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgse3pCRA9TVsSAnZWagAAIHUP/1fCOlX0Ydf/uEgfO+a6\n6GFST/CFX7cMY9QaUejEMm82pBSKw5RfF6OfLaENNLSC599lgD9eq9TKgZIv\nmV5hwO3ZtjKCntBVRYG6fhNbsNh05H92pGMXxKTn2R34rcMJwB8/htlQ/DyM\neBjYUNgXJ+ZmZzi81E0SBwYKPT7gloYh9AhPHajYiLKStKLCvaZKuSK+B+tV\nGet7YAYncYBOZqGjg9DT2iWnbOOXzacOm3I9KTeKCcaPQ9NYgTMSZEOJZbFu\n2loVPUV3TE/QMHoFJBL57PQzXgjBMvH1Q2eucsnrYyEF6fjQlCyp1CKsD6U3\nWsVPOU7zzUz8Q+inCOUj3gGjtV7qv25k3TEq3jvjmrSi6mutbayW9iYk17in\ngn8aKmIV5Miu1ujnSUZ81ra4by831ym8Qr08WG7sZwtUOZGXo6os8L1JLj2/\njIWJoFKWEU0T75sKqaqWnmlslOcUe2our6bfXZZwm6uuWrliGUxddVGVmr7r\n8NaaRDLS5rI12P7mD8OYloZMuiXULrJwkHVIbZlY0Uc+Fb7BcbCRu8r9UWXc\n1SwnK8bYjE40mr1YBiwkpZJ+G+gKRmh5YqkEkecGwN52AA0cmLJy9t8rrbw5\nao9pOoiQoOxJo7gHrTgEB8CYW2JxLab1T9uEsfHzdlLk4HZz/bBMcp/1QY9I\n0vnW\r\n=VwZn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDyecQYoUoanI4MJJEeuY3c5mmj9Lr6nkcNWTq+CZSbcAiBqU9HWlGths8SXvkGNW7+p212sSZmcsRjEslVZgei/cA=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.15_1622273512799_0.7069235551569673"},"_hasShrinkwrap":false},"1.9.0-alpha.17":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.17","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^7.0.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.14.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.21","@vercel/nft":"^0.12.2","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"007b552d8a1dbe255a8ec22c4b6631dafec09442","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.17","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-eUFZxfqWKZPewpJtIUY3HOVe9AcjVjS62u6sZU3hj6YLBup6yxcvTAXsUK0ewJnCRvyKTWrhl/aGsBSH4CteQQ==","shasum":"76656fab49a67df21d50c4ed66ea845e5e778de5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.17.tgz","fileCount":1475,"unpackedSize":33162225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvcLeCRA9TVsSAnZWagAAaa4QAJJzIa1Bu8O5pzTFKtMl\nIriqcjfG4N/3pJXUhFrNbBFqhAH2JmkIyO9fSCO/V53CDI9S1S4hYlo53DHq\nfpAKghb52o2nY2rptlDDK1v+PobzI2RMaylRBYOZ+4dHsNJkgwUjr/codJf4\nQusvFGpPMolXCD4PxVAw+1tUfETajyEoV1XTTsp2iOQaakVPSXNnXCc29g0D\ntEaKj4afwleqkO1uOOYYHTVyTUv28UVfgmVSh7Cu8parPmaIo9eDXIjj4Qmx\nT7Nhr9E0aEx4Xjywr4ohnZe7xZU02tKL49y3oGY43mfIk/0gtTnSUAFnie54\n++5PWnbJ7iCMj1FFLdMv/5TUBM+Mgv/ULyZGcjSUZnsgFQ5/PdFlJz0Nl2tI\nNEcDAWr0CGx0Ho7MA5QXuexvnUmx0G0izmqJMHXvCJ3jXyvWtGSGRMueGcnT\nmSFsesa8iugQ2qbzS6qCUgmmktAuYRY+IxQMMKGGVB1aEBZu2OUK+N97bX6O\nrI5Ii0WLISB+QR1anYiW869HhAI5rDWhebBcuhX0/dXTqv23E5WWSVXLS/Qd\nzfrLQ5ZyIutrkrtArugFEi67imtNIHtC717f9SuUaCgDEveXIFmnZlbRFxUg\nE3ws3uTci+w03JgCdw2rPc+MdyEQr8dSs8sG0MjjSi1FcRcMiKL8hjhhphEl\nQ9j5\r\n=aopU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjo8HAMbAGxBtmcDokLG7QmdZq8KOcclWB/7biT8aUgAIgLcwbOavpSMVxozJqjBu/IKpxJT/QTWCePWCpuin778Y="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.17_1623048925979_0.1110271672134715"},"_hasShrinkwrap":false},"1.9.0-alpha.18":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.18","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/execa":"^2.0.0","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/path-to-regexp":"^1.7.0","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.21","@vercel/nft":"^0.12.2","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"138b7ac4df7b7f162e7161e21f9de3deb7b1c333","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.18","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-I+hBDmdn9kjXE+wkCBOrZrEVfpeURTCIaKYZ2HMPHMNpVHvo47l+hSrwDBO2TqdLZHiO6xH55DUwybMWWibauQ==","shasum":"bf6a3d90f931d286d1f49c7cbbaa5abd97cb95b8","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.18.tgz","fileCount":1475,"unpackedSize":34096467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvmHdCRA9TVsSAnZWagAAn4EP/AndzLV/g42ihjin8bwB\nveudXUOcT4xcpwWkocunS0JvbUq9bLFSw+Yk2A/GWH5tKnSuw5N+HfvZq9vr\nLmD7En/3/UwnJvrSVyF+zAdCDttTYcPyNpYngmhI0G13caB5ycFN113QTigP\njDn5B/1HVB94bb7/i86vAFtLk7qxahrDaTMgAiUkdetnedh9MoZNjNshBimJ\nupPwyrxvCa/VtgJocfysVt2KHw1+jdrexL0guEqu6F5C46FRSUZl8iMjQmOm\nQR+a6RbgFGQOwWXy62Latz0QL9JbMk3vj6eX2snwqkDn/HBTv5gxjL+UQ8Vj\n4beeYGqi+6etILZbyKq/FRPQIo332ifDQ7uP/t1TrR5wn46Fx/Mc0Cu88lX9\nxhVNgxgubbrC8K8gbKL+F19ijudce++IdxzfK/R8TTJYX2Pq3sm4Vs/QYbut\nrD3Gl09a+a7X6evzfbbBgi6Ep0JYJx+DjlU6Qp5cgtbnR6LEbfluCuGcRfc9\nY/kiPQX7PKDeAhFu13AuiJLCOkj3NWAw2Pg8LyAj4p06Askov5jYcOhF4ZvL\nM4gWgC87lqSWnJePsWGTVDrBB4v8rs+V3tPcguXB48QLHb4S+TNRK9dRPIVn\neAIqA6WrraNtG3yiIrH1zye8/EIPzKBPF3dp4RNConIJlxPdo3hPB45GP+np\n061W\r\n=7MNS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIER+unMDNWqfEgh62DlY8R5UmJshDlzjudlOVd93RDPSAiEAudME9Q9UQ1pl0QJkGQsWe8pSXH94KUhv9IjCPmOgqLg="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.18_1623089629396_0.3018465834213555"},"_hasShrinkwrap":false},"1.9.0-alpha.19":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.19","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^14.0.14","@types/node-fetch":"^2.5.7","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.26.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.14.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.21","@vercel/nft":"^0.12.2","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.0.1","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"6fc3b50a02b07dcb94e362ec9697955f06e78d9e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.19","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-uGi2CWJpVTzrB/EqPL5komQ/pXNZ9cqUt+ywW6bQBmT6cGw7QgnlC8JdgFvfHRXrGrh8NOmcR/IqbiaZ+O981A==","shasum":"7eaa223329efe367a89fdf9a15cff8c36324c4fc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.19.tgz","fileCount":1455,"unpackedSize":34083347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvuJ8CRA9TVsSAnZWagAAy3UQAJGD4MdWCYUCnGiAu7dg\nsMAUVzeH4n9SsB8GMKi5/IJr4D1CTm6BBR+xwdfYRN8iFeLSrCu4ustDdvvC\nlwevfcetRX860FTKUQsrRxd5r9UL+OHEAZlFzKDvFn+5n1na3KGXGe8/ixQI\nJm/c2iDMRpv8DLFI7h54LO9Ac0pgz/SwaFngVZ2cZxB6qKqrBG5W2EF4Jsht\n+u7/d9uPKZqbDrkCkyGM5yXtSVy203Yumh+DtXvreQxR4R1OFSvS59MaEdlU\nPQXJjv9VobROWDRPh/Z7fppmnxEByci54kNGTd/JBwleyniJrpg+fBBNcCYz\ntJ5PSrko4t5UmofLteMaVddmkRZ/Wxu8aofOy7QlcCm2lK+90HQe1Nbzp6HX\nHhJoGcXuVGkhW6igK/PZzan8DbeHQZ9v0e3TVtrF1WSa2c9fEqxVlOx639GY\n1pJju3cq/3eDG0ychFrvjvWwFToshxowcJtCGkVLdvQ4WsywZGxWOgAjoEPy\nuTGEkqPWJ0R8L/yhzkjEp7u1ZzlvRqFDJrlHu3NALvuv6PO2xZu2g/juldKI\nsd0QKc/RWxFz2OzV00/7s26mempiLGSK5VA3ErJPHVbLT5e3Pl4fPD+/8nJo\n40b2gGLCszP8g4gef1DJhF5kJpYpkfi8Fy0g2DfuXHB/vF3M1Mk1lPG4AWrC\nmlka\r\n=uii3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0U5O76TPNI9c/yVkvReI2bnU9Q3Nv8BzSyOkwwTJsmAiBsV8BsLkvajAeEQnBSxhibHZ/ZJuTk4knluaAFceENGg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.19_1623122555073_0.9710092019146681"},"_hasShrinkwrap":false},"1.9.0-alpha.20":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.20","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.21","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"9bcf575b0af1bf4a7674a367296cb7049b1eee1f","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.20","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-e9dkK2piWgcQgsaOffxOE9zHGxZ8sNK+p6JD12BBnWAwE1WvKDhV21Zc7kGzNrs+9mH30Q6AZAuCzAaOJ5fukw==","shasum":"f9713529751debc3672ee14c56da6c36d67d75bf","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.20.tgz","fileCount":1451,"unpackedSize":33708095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv7v9CRA9TVsSAnZWagAAvW8P/0r0qDGOm1K89pL9i8mx\nskoKn0ommXu0RHrV2OsiurBWXcJWAuTlZoYK/paGmmXofVP7f6LjzzxbhQLr\nvigFKtmeONiKbJrCYTAGtPGK+yU/zqOjFnGXzttOcG+YBYLcMPZF3aE5g+e1\nElJBC0Bd2DRCyzUy9ViwBDW6H5J8Ud1d8sGBqSxYbo7SmzlbdE5M6WaqyXFf\noi71ptpsA5is3Dt15Fvf1KPyld/46/bpbdxGJko2WJ9EDLrczpoluAdY4ENm\n3cy7ExqMylTmatFXnhWefGbvHk4UQ1cKqyniQpme3odwPHyCwwUx7iemoWgT\npM42Fi7xTWtZsV+30b42yLF2J4ebLZgWVyFKIBT8xvFWIww277cSyh5tmDYa\nof0rNHKc355BDnvQaTPsZ+QRrCJVvBeYhZ987G4W4gk5QfJ1c0RERQIezA9L\n+5RmGDHzT8cH5oiibKW6ptns/Cb1c36mE5KblRmg5fLqHSEuPMH4ORiu+6GA\niGbDwVeMoPHfJ5ecmNzEDkeM7S+RA//h1JmryVczW/lQiLgfuRjSDVEqj9VJ\nKF+SoRmU2zzTHfMZvaeeys2QbEz2NcmEYP8hpluU9Gh6CbX6+cZtZRGXXF6b\nfH8D15S1wdA8U36+WUFQAaHgyvkuDvkSwOGkBzpPgeRbgFtDH8c/kQLA1zB3\nUNm3\r\n=YLul\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcS7YrzuLqpc/lTmubbzZObq5i/ky+DXcnveoIkTx2+gIhAPRjAYkezZcf0oJ9QFZ+7XrbtVJCDf22ko91b2WJty4z"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.20_1623178237503_0.9195854454930075"},"_hasShrinkwrap":false},"1.9.0-alpha.21":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.21","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.22","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"096096fb471b0b5bb8b43c0726abf0ad07913318","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.21","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-wT6xk8Ti56MHFjnWyIhiO5PMLoYyQVm7xeKIJzoNGwlX+uXEE+gc1XA7snFsTVTkO1QJ1oNq4HiUUsULPMfQLQ==","shasum":"010847551e863e4cefe70db6b5ea1199196a815c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.21.tgz","fileCount":1451,"unpackedSize":33708101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwRUYCRA9TVsSAnZWagAAyxkP/jF8RZScVjDOpp3Gtnkk\nX2Ys8POSC9VlXt7Oa6dSsLA9f/D4Oec8GGmMdQ11tKj9miF5yeA21yf6D6jA\nryUTk1dqZYUmyZ9pxXhUSKgtxCFMuOgkeclz75+P0uymaNmaMk1Ot05Cig6U\n8uXdlX3a4LVTWDGRFpHUITGOsZfyKDrRkUDI+udWFy99ZVZExVExJ2ijFWqt\nmhpAGDv0NbOlmnvZqvk6uIq9dPxO77DyjjM7vjc81LDY7J/mVfXaqYDY++Jz\n9n06rVWMYS3SmLve6N6jSUbGP1T+MIXdNmmvPNQ8+hlE86ea0ZCIxGEVoXzy\n1VPeZw4FxBhLR+Ld92Go7kivE8E6Depu9pDhhnoo+2YqDWzmd3pRMKUuHesd\nKuFCMHT4ivc1DRlPcF+7We58udpZFrNeGD23TAXo11ED05Q+47xUblyMdug+\nNrTd/C4h0oT27Fp08ho/YIB59ErGyUesI0WiAsW8YOEIBKn9j56wNIp5x1oK\nQ4C42H8qflaok+uyHjyXSgGB1YYo5gPEzAshOA0b9J/AKTTHRoK0YdT8kkZP\nyTHODepG8uG4s4YU8RYKa0mBDzfai8pblvoD8MMjoiivdJDzJcLyf6n6FLec\nSqFZWjVJHeBfnx4lY1xrmrtc6cYd5VmTTiqulwjV/P2I+HkJ4Xv7eNA4j/3I\ncjoL\r\n=xN3x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHaX7JIZhd52tgsduOthk9a5wPjpIU91h8zaHo1Sir+GAiB0IiX+K3+8q6/KV8FMG/VZR8w4T8LYG6otUYIbWInieQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.21_1623266583904_0.3596288779379553"},"_hasShrinkwrap":false},"1.9.0-alpha.22":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.22","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.14.5","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.22","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"b0e89effb3084ccf4d68f109e84b83543603b089","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.22","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-bAajPdhHj0o0FFTkMIlDWvBbL1otsJDUceOUgNQMWQ1hSMsLukBf4iitq3MRfT8QQUPQs77H/ouv5RevxAf0yg==","shasum":"06c9b35356b297ef6dd484236d3a200adc709cb9","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.22.tgz","fileCount":1451,"unpackedSize":33708126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwSE/CRA9TVsSAnZWagAAHHEP+wdEM6vVK+y9MWu5a7CT\nQwTThFr7GY9cUBmTpUspKt3DrQvb6cjYjy7YYvdZRhJMzOsOssy+75Y2OEVL\nOycecykBAlHsCKfh+nCPaflytbwjpUS5DnhAjGqMO/Am6dS9v1UuCNGrLoPA\nK3Uh+3f0J46B2AFENwSBcE4b9F2juT1+AZzk9fM9lxqBJ0VkPFyanK3H/XMY\nVYVaAf/4ijqMJcjs9C3FiyMt5g0fe/34qooKsVPzMAo9ly4M5C9WLVL8HlI9\nFP+BINcEHx5fvzxGwSqnH6a2svORkR9v87iqkYm4ka4W6FEGf/tvHvc/AD2Z\n1KP4XEteInoSHG7DUr1mr8J6sG2batdl+cXtcR0lHJOtgHEhZ/jKsxa+mGzV\nIxKqs2dNXKhZKFwy25AbIdF3oT6kmKmr7OHW9f6qfY09Ls4847DNXbC77qzP\n1VVF2eVnFnBZj3nWcm4JzMM1Ky+tNX8udhhBf/Gw/Cz7/KqwHPPHZRfK77V4\nCPlLViCLHqZiiG2m65EU8lbfW+eu6k6M8k6WooQiJ5bCrW/uTV6SrMgwHU3n\n7baH6QMO49QuPq6nlJsrKZesgbYwhdHoHU32SH0nF5AghBhMG2q0wCrOkLP2\nEMktmQJaX5UsZGxrGTGs/GpqI2gyqk/+1/pmsGzu/HMAjrnm+fJSKUjBRttb\nNcWH\r\n=dbk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5NJZHH55/1SWplWoT6nGJ5zA/KCBrbpktD8sUfGer3AiEAjsUEDTiUJUIVz8SNCtCiDNzllOdug1OesQEFuISredc="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.22_1623269695173_0.09013913751573455"},"_hasShrinkwrap":false},"1.9.0-alpha.23":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.23","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.22","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"73bf5be4f5b20fb8f969a2bddb658501c4fe1bc1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.23","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-N1fk1ZHE51YP0tABHJFDuJowWcouIiHLzDYF+VS5b/K1E4Rg1WY0q7TkH915NfvJB7WUJtWK7yrFevHx3CH4xQ==","shasum":"8a25e9c41e22ca2e839515596b5404be167ff380","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.23.tgz","fileCount":1451,"unpackedSize":33708126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx64hCRA9TVsSAnZWagAAyggP/0AmPvRWaO/3FVyfzx4s\nuADtiuFieiANQxz6bw/8M28AHwkKlumcuXEYKC5VHXGvvN6WJSNeUVM+fcGG\nLdXArde0LWrv1iglS3SX+uTSbp91E4B/HdnTgaDpvJhdVkpt40pkkO9nZdzn\n1c0DG2fGju6rwS4IFWpE05hRtlrUVyNUfhr3feeXDpLUyGho6kR7t5XldNm1\nZoA4DeJHazoviHyQzqGSyqhnOgbGr9+8qhzWqMsXS/OS6lD1HC+LJ2oPG1er\nbPzVLSqsJ4Cp/BGQz6KOXmMvfJ9ZvYmYfvDMGTMgQ0W72HTpWNMsQEs/B97W\n3/ea1ohUQalihCqow69NMOOO5cgk5Xtz7kuuH8JsnTOShllzpoUVGavLpRKv\nwLv54CK+fIjLNtiKuNn0x0MoYdaytDW/y6NYFvNLa5g74CWMmv9pOZUaRJ2s\njEpHr3D3m46aKHV19lM2+N0qBl88q3f9K+H5MqWlwx80NNVC5I+0bUt9Em/O\nlFpCae/FX1syUg4pXIrxLOb8XFxLPwEo22wHvlT5DU303Uxu0EAPLrdWKtLz\nttpXD24owlt80rOqDhsJQsg096xeCCvWCuauuQHVKlw2tbfK9t8RGp+z6UNb\ne4aBnOeep6xDdnObBgb/v5AG3fleyjP2i6GE4EespQgP9cW33cxzIRvGNi0E\n6vjy\r\n=2Qda\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAjrimtNuA+lp0BbDxGcEl9lw0XsEOinMNM8GE9veNNgIhALSUywgoDNvJf4Ey3rOJTszINQ5PUcyMzt3cwYDv2+4J"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.23_1623698977186_0.6069199838367165"},"_hasShrinkwrap":false},"1.9.0-alpha.24":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.24","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.22","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"48d0a28ad5de192a2858442b6eb24b016dea953e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.24","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-NJRTTQVwmlRzoWfyqiDRpbSHB7oHhus3LYkmT4qJGKDYpW2i5iyPOMWt1dQbISSGCIllx38tLoB1msUjeL5sTw==","shasum":"87427452691e08d09aa47166cfb9b77b0ec19865","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.24.tgz","fileCount":1455,"unpackedSize":33708164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyP38CRA9TVsSAnZWagAA0KoQAIenzO2HeuTWx/zJYgpv\n70XrRY5OstZOmG61X4z/HXii/UTC5GEsy4LStgIGwV/UzGPz0BZj2wN93TW0\ny6UIG6LoAd/Rv3/fM5aV/JgRVlfaDWRNy5BWCAxkHdAuF0uWfImqZ1e+pyx1\nxUA1pLEd6H20wrveNcQ52z2LweFBLgbuRt0O9dTrXW3ge67sEePCrt+vNcr/\nXGD49hZvIRi+WWtBx3OOSHYPNv3EYMGyskzDJmdVp5Pac7+Zb0jJEoPZDn8M\nahg7Os1O8/osE/dgV7NOeMPddwlYUfFtBQr5Y0lU0SOgGW1biV80rnWw/5eG\n6t8wX2xWZva6VVTS9RqK6fZjYuEqqDS9yQ+7py61S0pzEJpZDZbbRUQRFCpa\n6bEVh7HjqFyv1Zm9lIUVFd9ASVNDH+nN52xIeg+AvmnJzlboijFV+AeGXYxi\nvzyc06rXggTv8mGKGOlnPXnUKElifK02tTD/ua60NVu0JZrd0MWzqxTaO9R8\n2EPr6CMguCeY58kYXiIZrYjT7s3WG1YzSAAN+1y+Cnum2VZvKvPl8xcrN0s1\nbU/02Gxo6c9W3NySg2HxCVigyQ7rLhSfQI5m3b5Fub9jbTq2jKJCc2Ql08lB\nNKw1L95SkfdiNf93vTN087Of3xX86PqbMTpMJo6MY2YDYJktB4lBwpNS9qg0\ndTZg\r\n=v2vK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRZuDqh9I7kZtb0gCpWkb1+ahcPSXr68/vyjIgda8LgQIhAIXjLf6mbKeaSWr813IYq/JUnRcrpvVZKaogfb4uXjnQ"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.24_1623784955658_0.3637905760648936"},"_hasShrinkwrap":false},"1.9.0-alpha.25":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.25","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.22","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"7b1c75680b57aef55c33de261695f0b8eaf40c8b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.25","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-m7A+enSlmfSDvWkfkBLNeockHgN5l/y3Ufr5dThMPClWWjDeXBqnznn3m/F06NpETOyup6woFyqBN6V6DSiWkw==","shasum":"89b8dcf05156bd88734b0835167cc49583459faa","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.25.tgz","fileCount":1455,"unpackedSize":33708175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyT1CCRA9TVsSAnZWagAAVooQAJhldqP/4CA1YRXo2f+U\nAIZ9FaJ+MEVq95PT8D9XZptn9Z47sqmMdK8+1DFrpYHfnZ3tmknARjNvlrx8\na4pDvcWfprxlvGNwkOdRHpr7ODVdova3/I/ojOZDkPrrbEGejtMFPTOrNTUe\nHODQkizAMVCGh8pn6E2woMclnMLkFrOnag9F8yA/TGfyhPatYlq16sD12x7q\nB3/pgseZ8/Dll2f4QRf7scj29+EUVR/2IsnaF9wwr2CXFMznShPAVnI+VoDc\nbdI0TvcKirzoMy7HyeKP7FVVCJRpCi6NeEiEAniKQMHNCz7oU3mjUw39YqHM\nhixSReeYG0nfj5V/7L+jbC2/KWjJCZATsCcWMq22vGf5A+8iTmwNwe4/pOtU\nbAoCSfCNymZT6poj4VfMZ1130Xa/u7zgTLk0kB6KBI22pbwMUK+/xeOcF12s\nhcg5l4uNIParqcSzwtvturQxBVywkvLRf6XlWQJEocvZINQzWaP+9bvj6E6G\nXkdmrqgdZQHwmfkTwWFKgptmr+MrATg5zlLzV1m6yfTtXLvDuva457R+L4Iu\naYxPoXiG2OuAbsHByz8PVL2WGAbxhUj2nniM6eEiBnNZj4Qz0j9RLMhbwuZl\nC0VsSm98/kuEMpQAfkWGFxzQUxd9AefS4YYbHx8sGE2o38vvi5MBNc4a7kLO\ni++z\r\n=RvRe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxoxdZtDWYZnmCL+rFzP0/Kg3/2xKDpADE9rpWPDEv+AiEAt0lhS2jwKN620N+2mQq6waXPGsD1n187fqP+cYaWrA4="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.25_1623801154156_0.24739504074735374"},"_hasShrinkwrap":false},"1.9.0-alpha.26":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.26","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.23","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"361856ee8ea31e19070128fe7dade779648f0e54","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.26","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-uNkDbEpiAmMk+o9e6zWzoVUp6BbaI5tQ/cGax6t3Yq5uO795Zk+TjbwizvxhXfVUPcqlM/n/V7JyUNzU+xKSFQ==","shasum":"230efd60f0f1fbc648f7fccb5b78762f0782de0a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.26.tgz","fileCount":1455,"unpackedSize":33708146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgym1kCRA9TVsSAnZWagAAFBIQAKO0HCxJN02pwY9xI1G5\nH9WzW7mwJBxkz16qKTtUOBWgnEVGAWqZvISWoCzdIEQTIqpKGO8z3+ZhiBu3\niCQ+YGQtUYq2eHcLcxQromAl8iIBOWv0BFzg3p/KhxU+jueuWtt1dZxd+lsy\nH96ZZGh+ru2yHWILHUJ6r0JOqeMn77iMeXv2J0tMoiqnbSDMq5lmTtKe+Wrt\nRDWrXQV1KMwunPpZ3AqAkq1qxzJkWkjvesHABsNyH48MO00EgDf77XCMkeFU\nzMb7SB5DdKtj+oNL5LiT2KwZ1Ksya9CJawzUvZUnY9Tri+O8+ukynje6SgN1\nV2L0EmEkBaQ9YY1nAG+Gk2m+Ow3Lo7Oh9VdJvehJ+2/ubwwI4cSXGiI4E0OC\npx6C6v9/Y3sdFDgPJwAddH0giNYHL5cqJ+i2dIIUApdJItcGc/x+Yk4A5Fl7\nZTOMd7Kly9WRk9pGSO3+gv9HEW9iP2bdmaa0KKXjxO1wSBNp2yYRSlQkiR9G\n8GkLCev2zeyz61Gkh/bB+9li2HwFStJSt7klkOCxEcFXS2kTm57zHfaSf2Uj\nMetUObEXpfZvglkxb3v42iMhO8V8WeEHpyBI7p3UPcguU36s4V2PJbv1qKQ2\n2+sZuYxzpBpmfVXcOKopWhvbi8hff/gxXeWoSZ1B4jzlitq3hbPtEy/4MKvk\n4x2f\r\n=xhJA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgXHCQIEbYj9T5i47AuR7ZpxgsoZIEghoP/tgcfqW+6AiEAkqtlTOUu3FbkLgP2m1XnjnRnHfnzpuQUCE+8Y9lccqI="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.26_1623879011594_0.9496648382913195"},"_hasShrinkwrap":false},"1.9.0-alpha.27":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"1.9.0-alpha.27","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.24","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^10.0.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"ef407e42edd96d9faca335fc73cb76b10a02a86d","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@1.9.0-alpha.27","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-hTxqAeGEjcBcNUwUUQWEFByD6dL+MiXvmDOV/mQz03Hr3GVD9i1BBMXdTewHS2YefGNYBOvWCyLscVnRqftLOA==","shasum":"35c7ad2f76f18815511d0753eb03c46c8f71abdd","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-1.9.0-alpha.27.tgz","fileCount":1455,"unpackedSize":33708117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgynuUCRA9TVsSAnZWagAAgwgQAItZDEOdBEeldXyXXIuo\nuxIjApjCziRBSXVEyTEhxw+qCPxpSsmxnaHF5nB8gC0qU/BPRt84g7Tv+EUn\nvS0rm25jnYkcAGf2a/TM7QYVN1eYudHlSItS1ikDokwz5bZ9S4Mul5XNBUOl\nTMoJC7s/GHOOQaK5IBvWjV9fevWOySk9kjR4JtkJjRlhqEQr1Hg0dF+MbPe9\nEuyGEU/Ci5aXhTZIDXpn0GHevul/RThClHW1sT92kTweOUBwHPT2XSSFqioc\nR4Io8bEZYPYzOLUVuDPKMlN0GRM6GVCaW8Df3rL41bvJTsbWfPWkaMwmluaT\npoiA1SN+j2jjAkJFiqm9Wf17rV1iQibBgDf5UB/0P+vSVTh2KX4HgGOmre+6\nCIHSQZFuTxSUktDNThJN1W5M6cQuRqeBLVRBT3Zk48fAV0P8wWb0183hr5uP\nmW1GbfsFv8GJd+lh9adtyrAMwMUKUa9GBqcwhBC32pyy+vMKF52L5WIRXoWH\nUbaIaYZYLhKcTf27nxGK1FTN1uKbnIqllC1+9POD/BJzvqogDZ5slZ74IN3z\nGTWpYmz15aJqrO9KclUQbm0h/WNMs9O9SuYHyPArFIpGfkAd7p9RYQ5Ds1AE\n1KcKdmq3oAf6XLDYEJStNSBQj9JaapYhp0beCQV3ZavM1G6R6zmTzd4JsD3H\nxvc1\r\n=Njnm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7tmBilikxiTo41vxTcI9REqeC9sDZrtfuqGNP21QG7AiBYJitsh4rhtWOJLiCb0lJlTY1xct4UAAX4uq5tmkx+eg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_1.9.0-alpha.27_1623882643210_0.4771726184535199"},"_hasShrinkwrap":false},"3.1.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"1.0.0-alpha.24","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"b5073a2e83c04df69007132b3418c7b14b7f2638","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-XX+xRYta6AbwT3XYN77NqenaC4QGhxr8YykaHTzoBtTll40VU4YdPDXWgC0wjuZ0VRiJTz2hEV+wSKcCZ4W4Kw==","shasum":"dfe752c6a38bfbb41e4b9c4e48abfa4557a16477","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.3.tgz","fileCount":1455,"unpackedSize":33708874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzDmsCRA9TVsSAnZWagAApyMP/i6EPZ1LC0QhNjJ3+9/M\ndQx6uUpPz/CEX3qIGrAQozGDOxwxuhCw8JXXEyQnHBo1QD1j4yAaBgzV+UYO\n/Y4Vng7csx08zbaedHWzDZGhqmkHtMPCsd5LgMOcp9T29K7/jY2ShveNozao\nn+n2NbdM+uX+5+r2MeP070eslTbVxs74j1CJW03AiL5bkiuXF6GzI011abGG\nsbkhGsDTYbtiLLtP5VfnWQRyREscB0+C/LUvMTfBGSsb8If4p7ebZi+gZtul\nZcYrC00A7Tui4TKnQGhVOIocJFgIzCqkSmRH1qGimt0DaHxYFR54BAgPgfz0\nm8XeLHHDjy84WFvYqMHtvuRISCZa7Yuxa959FtZXRzxMVXNUgmQyuIQPV3xC\nBGG2PwaGJTnpur5WNd+MGhkG2R8jBiL+uAyv4Q2Ak2HeL0WeoRm76E8Q748C\nYpOQFSs93KijqHDhkMtY63qvYTSyfDjM1o2USgTXDvaX9x+xyfGo9B1xka6R\nfQB4QN4TaYjiUwi5tOQOhMqQEBIXIskWNQiX0TiC50KZUyUQeiKefwphfYPN\nASd0loz4wg8cYb+FNS8vPdKrd1OhPVM841PU09A3VdCYftMIfu9p1lxkqX1k\n2tHhJJozuF8s584PAADUuoUxSo5NwuFKgioDpL4L8VR642b4hHW1lAt9CzdC\nAoaS\r\n=DLur\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT7VqteYgnBkhswMVAWHum77cQpFgvFBGEOJ9h5gG7uAIhAInPpIv5MhV6a2TvTk2bgJeTL+yzaSyo4TkpO1igk63K"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.3_1623996843722_0.6352843020573944"},"_hasShrinkwrap":false},"3.1.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.5","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"be37b1dc71798c127d99d38bbf3f9d869a155315","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-PcMt9UDs1clPsGITOlJYwPXTL0zCXZn9CjP0bMYoGjCBHFcelDr/p7Yhr6xlFyhPlEZSEoPSaEKkOohoBNGcUw==","shasum":"f5c7b7f844a681fddf091b78bf29b09202e9a18a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.5.tgz","fileCount":1455,"unpackedSize":33708873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzVDdCRA9TVsSAnZWagAAum4P/jECCL6ZkdJkp0peQOF8\nUn21Doq5Tql9ScVtYWUpZmNMAwHUcV/QOJFRq07UJNGBBVdqvaTcJ8cNTbjZ\nqUfUBYPr1ByBvMeGQrN2cnSkLg8zJZQUcccaCF9ZIx1/O+YzKkgLkhomDG44\ndej13Awu9hvB42fNrJKrEuFZLRnzXXAhr1puQcmrNtY8pde43LcuZOlPYCTL\nW1pzQc19lYkrB808C9dgc51tEu5eEp/U1ppr5Ljb1qoYfOrQVIUlSSL4LMz8\nyXI2wkILnKKTRCzbtH8tWFSNEavIfAYKk0iTZ4c6wr6rKFEnlxJiJMByyxwH\nFMdo0VEpSI8J8PeeZWlSIT9R99UJ6ETbkg9p1AdYRrYnV8M7Ed+VX577fPgI\nTVfPDnO+6kwwP09ao3f1yUWfa9yDLqX92l6C/LPLegy74IPlst4zr6uhH5Ar\n2LAunYnLcGde6MV9MPzeiuTmFtmbaaaDBjq0pjAFZgoGOW/VLoKkpP1KIqxV\ni70zhlr++2D5H3RF0pCdv73r1kFg2WPJXTQe0eyc1lbP+2Oiduw5oOjeScp3\nZbU7arSaP7Kt+FJBVD9n/kb6oyQB2bdhTVz/xSrv6YrQ9LrsDwr4/Pz/Tkyw\nVdlqASQkUfi5d9u/nrm2TwBWUWBtISgXiQZXs2Vf/tfkXP5tUJrjACEif9ED\nLnI4\r\n=U+gu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQ82zKAzmpNfH70lvVtOxh2cXfUkgliEK3fvBQeypn1AiEAq+uiMt4paMUZO7Zv8Ax30oRlUCFcaaCfoDH/ZgeaZ+4="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.5_1624068316863_0.7331545429024144"},"_hasShrinkwrap":false},"3.1.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.6","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"0aae3d93ce0952726aed2af5a8fbcfc518db7175","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-j4tfBPBygH7MeocxzSU+mT1DcmMz8wxNioXclMA/gTRRW5nzEjfq+CESjLq3AQ5a/WWCQLDI+/QPRTPXRJoFag==","shasum":"3cda827b7d1e6be056542e4b6d64c20e96b0b0b6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.6.tgz","fileCount":1455,"unpackedSize":33708901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0OgOCRA9TVsSAnZWagAAJMsP/imKhQJS98Qp5WxyzwBn\n7iYQXRH1/g7YFqf3jA38CYPNYTIl2HM37PgNgJrJ1gAmrhL/F6oWZgsWgQYy\nz9+IiUEVXxvksRyTv65Hxg9ED41cSqMCYmm4dMhiHMFUUzQOqBUriPuBDxpC\nki0I08k5XegL6ZQnd9moRshlmxZH8Nl73i7iuHuJeQMZsKGljvbzGrhW9Zke\njl7phZWRyH9bi/ZLsdFq4TKkLHpNCCJyHZEdlUJtFLT8aDy/7QfivvyKt58x\n8yGifIqkxyx9Gof0Ka8xcdUF2kewCJa+dU3MdQcYLOM7qL1shdEPC8uH9Njl\nviEcbI8squxGZm8jEEOSM50S4SL6/JV1v2YMotYF6IODWkVto2c6rE69f3eJ\nz5FZ3Ex3bylSBT0mxuvosg1yACENV3e1CSKeVQsVkBbeZTGr2/RrrpwDPILx\n9n/DBc70unrxdutAQJyzy1T7CKyQu7/Sr2EnY1FLS5J5291ACCdq/vsF4ZjD\nZDiJ2yvvu6ACaLtmMqyeNvDsL1XlXMZDBc2tMsgcG/zMFF46OpTHaE/Kt73m\niCG7hFJLfhh2FiIgFWFeXvxSlLrgGMDmHIyFppgkCWEcX6abmwj6BYQIt30r\nGFnXmxbUdimkFSR0r6NbGp1LCWoF5jzKztWPnLGesHVegJcRzDRbCrGOUjhM\n585A\r\n=7uhZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM4vTdlQAe6K94n8mzdvU/vRtVxLf2EIiXHCMGXIVRGwIgXFMhsEKiaiVwZdGOSif9MYL0m/ash8etp5VqJmBlueU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.6_1624303629188_0.6294431091004833"},"_hasShrinkwrap":false},"3.1.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.7","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"cc5f9deaa8373fb8d1ad5e204aede3c0bcd0b7fd","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-AmHwgBz2kXRSwq29rt/BkKke0i7fcxFEp9iEBIB2HzDBY5i63keT4izx/z+qwANi/yTa5FeFoSl05SMphiWBPg==","shasum":"59ef8c03ed0879f0e64ec43b0ef0cf1f2ddf34fb","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.7.tgz","fileCount":1455,"unpackedSize":33709010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0iC0CRA9TVsSAnZWagAAlpQQAIdoBeZ4rX/6YZ2+xk7e\nVpI8s5yXVT2EbnxLALnjuqn+FuNX0s5uNv0p2FsO1c76B0g8Pjgho/URi8G2\ng4nkb3Nz5cCKiV/GiphoxGY9b3ri2lmQ/hkKz3u5RX7FFHt6WNj39jaP3QzD\nS6RzkltyurGfMv28+9esoDa/UJx+1VxgoWTxH4G8YvnZQ4/+1uxmU9EmRyTo\nFxWLz0kVxtnFi6SRFXAdQloBrcwYjonXdUP2/I1ZozshKNlRw3ORgrkw2xo4\noWcfJtmlinrkalCG5xqP+onh/XsuPV655sV7VKL2PR4eLo1Pi2a4BBzOhbWf\nj1IevjhlJLBCrJYogd/RORrYiqrB9Pa5BEzdrloy8IbyTkg5jK7RIGh1rvEw\nRKiK4o6qLMj0kem2A+VWBiS9Lx3wN63egkvcYTZk+GQLZSaha8bLQ+7TlZKx\nyA999+5bRPBAuXRn4icrS+RD9QSXSKLf75RdfhYic87gBUdXWoZonbjKrV8R\n/XjM5FvpNhEFC1M5ir9AHi3Edb9VnLTkPB9KIamZFbiTaKVxr46V9C+cFGYT\npp7KJ3cqQu27HEEXpGbeSGwDhKgsxnZoHDV6Mdecb4kDTDprv8JQqmdriGqB\nD81AjiZONpmUfvbooTFOK1uN+Wd1zJFKrf6e7caraLs1pj/B3FM+ll8yIxPP\nEEqa\r\n=R/cj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtkVTQr57LoLVSMxuXe7i4HIGNTYHlii2MntmJxWx2SAiARV7S33g6yEb8r0wwanfRHnvfhWqThOmThdf8Yz3d1sw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.7_1624383667338_0.6168735583063871"},"_hasShrinkwrap":false},"3.1.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.7","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"17040eaeabfcaff1e38b6ab981bfd46954fc73c6","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-e2A6hG/kLaKFPVDQSFpxYpOe9PHaSr2bvSNFm8fH4WZrwWypqKIAQbOk7HyRwOW2P9BEkCFA6I9s6ZsAZxSuvA==","shasum":"567750583208aef82701fbb5e1f9d1a8f141094d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.8.tgz","fileCount":1455,"unpackedSize":33709384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0jq2CRA9TVsSAnZWagAAfrEP/iGFj8qsQwyKHSEoeA9V\nOVYQ6KxDXKCTnpS94xJKBPRY16Kcr+OEV4HhSliF5BLrzUUS0/q8z1j2YxY8\nZuxrQ/axqjFk2+UMzmoL80P5AMU3lj0S6X3At4N5X9HePH9Fb7F9RJypCm0d\nxr05ISAy7vFJ78QBMLMkH3vZeATo+IYcCwwyaXBw6uO3xuD6E+XDcXYECT9w\nP2ILRp4T4zPCg31X8I/uCxOEViiCT4edV8Yz8m+XyLVIsxaWkOtnLQ9NGBcT\nwwa77A95WKumJZkkkt4uDVhfAuCsuiID6MCGOfYDZg4etP9bfUkKCnSSY0rC\n2V1Sk41TmZG8zZoNejyeZvGFZ1S3CzIybdiTOakuA19EMbKbaDLmIg16rtWb\nnq0hasNmvs33AsPAaHGcgJ/M5vG2UoY/51gZ9TJCT+d82oDCVWnp6PwWdK2N\n/SgEuq6XmTguLa+LYcVC/kD6hFo70UCD/9rKxvfZlxIbfHKDN8hltcuYgxe4\nJIXkUdQTpFo0tGicv9Lz0BUGtCypZN1iJDpV3zn1+wJKi5olOORKZodrvvbu\nRouV57sVFUTgvU1FWPl34kUjmqUWUlTcBwPfi5K1jzCn65aMq6ABMAM2Q5xv\nYsJkQJ3x8hORF1Vq31xpP9mlA9r8rpKvFbCzMaH5o7gD25TjpMDbhFgjllPb\nb4zJ\r\n=vIJc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEjiK7W0yDzezmKXybQL/qptayfCI+601HiHtFw8pzWAIgXrICKUpxGIA3zv+9Bah+VyB130OekvLWQX8icsfnK1I="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.8_1624390326194_0.9276207456774077"},"_hasShrinkwrap":false},"3.1.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.7","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"c29ffb30a856f992727fe7e99bbba299e442004c","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.12","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-RNsiQZUVh4mfm+PxxTh+TqLO4JmJBo1+1Ej2C9AxNQ/ITsYAWAKVHEXQ2IT59e6FTMeitteGwbrVlu8r/vUJ+w==","shasum":"21b94673aea49938bb1b767213cf943e0da01dec","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.12.tgz","fileCount":1455,"unpackedSize":33709931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg06fpCRA9TVsSAnZWagAAv3QP/RlEkIEjbcxpKXwZxl8I\n9UPQOM0JRV1v4oivKONNodC2/VAObKRxNobLhosureV+WiguQlM1E6a+ggNQ\ns8I0hsHzUQkhDnBCbB681zbOAd/TAm2cQP3U9vuvnTcyInsjHi1nJBRj3fkb\nKJMkTTVYpIIKERLcohx/V6XF6KyX11jspBPuzKIldaljJZ9e+KS0vEKfLErj\nN9l409IbmDeyghDJ9dvaR5HzwqJB09bNnrPvq2Z3dg1yfj0ILoiCDRLbP5ao\nGmsyB1SR/bIhVzBQ8hySNG0RQ+/uA35/pFls8gSs+wFiSGWOhIbP5NrySNn9\ni1/N26IpbC91cr2d9XoV3qZF8BJDL2omb+Rf1Oy+epHn0Rya7zmrFw7y9ZVb\nE4sDTiavTFREyBQTKSUC4SYlX/pYOkNgR31vQ8DsQLkhshO9vqme3e/Id5Gb\nSOQ4Pat3X6Wwc1MNXMyzwCYh/hBURDInAAto4X61KtsBzf/Dryw0RTrcLl22\nMB5lIKpGSWW1qIfyDv+F1WrGEcxbrFfJKBxpBPaaoeL/HrngeYeanKFPMaEw\nFpKOlLyvH9c5LoVCG4WwXPyTynGf70hbcBIU0g+jNzbRIruSs3WSXgVO85XX\n2aPt1xjYtzKsByV+PHj1ZF6nmW1/fpNSPBnLFTmKHx2Gq0/cJfS4pjQ3yBms\nscPt\r\n=5itm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0kMuEdNhzFXQAh3pTr1wNsPuAdBiATkHgdoMspHm9JAiBj192h2To+P2SHyGqXCd6oQcKSHAM0N+iuHyEaB3ULqw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.12_1624483816905_0.02274240546506512"},"_hasShrinkwrap":false},"3.1.0-alpha.14":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.14","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.18.0","@aws-sdk/client-sqs":"3.18.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.14","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"63cc7482e1e0a7e8d67a0d7d6887c0a6099b9f0a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.14","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-bfVySr14ry2RwwLLyedisAsNFhdbLyAUOh+sd0/nWOPJh4xRQJU7cr3YOuXm4apRs1+2E5SCufOIuPG3EDp+Yw==","shasum":"76f919f803a426e48483705b6b58ecc958871582","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.14.tgz","fileCount":1455,"unpackedSize":33710038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1LokCRA9TVsSAnZWagAAsuUP+QGqdzCZzpBqZqyxpmdA\nn3VMT4eg9SKS14uRLye5PVh2Se9x8OAMBRzQBEqbR8KtxYG/A3fNKRB1K67b\naIAN0ajXLxVieZhBl1gQVyB1ZJNq6RPyR5VTHIC/6h4XAucd3hAXTZawfoq6\nCPT+GgvqwlHGbHMeuqWsRw/0LBSEHw0a2zW6pMfCqF0yBG6R9Rv+BYrOrAm2\n5D7OPo7Cj4qf39OC5ZIrSygz1rwmeXg4xcVVsuvjhpEpbGdQMmLjmKzXUuUb\nNcRNaPpYkWtbxabVLbylvsNhBTD+Brz3yZOE/T/G5eq8WxypZ7bId0wVM/bL\nfLzRu3R0tG9jl7ZTSGrt6MZs80kpkbJZ+IzaeJr5cyplsGLWDTWr8YV6A/TW\nN6VNI84T721HV10aEfmBKaL+Iu6gmFRILMw6ZFpyaQa4PNl7/CROKxmDYgtA\nKtNOw1wibBNsMxzbOLZ67G001opw/Zv6Pqg5ZIWrnpPTkX5MnsDkOWrC9fmI\nLQr99pyCXLXnI6n9/rASroK8VPmYqe09mcvmTspXJY0HbBh2xA19Me1yZQ4/\nLI4sxHTwWxSrhy/dwvdIMRiwsg9WSycHIZNn6y25sAD5FApFMA9IkyLp9ecM\n4PPR1bzXmQ0/OwQ2cmTgAnoUpH71y5S/4TttDKRI3lIVgf4VXIgdMWlnjicH\nFDhG\r\n=/4XJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtEQBx1tOOFAPy8HKy1RKj5kYUMTonEfu9QKojVzdlvgIgVUPGUTUUb9JoFbljiny5bWKZHCmVOUnkUm3wfTWe8+E="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.14_1624554018205_0.9203054102118893"},"_hasShrinkwrap":false},"3.1.0-alpha.15":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.15","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.14","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"e57f0edf9247a43a1d5f4167a11814fc94177146","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.15","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-lFAyHSdQ787rDlIOFS4Vw/QSHa0fjP8slzHqJglg2ilXWdOH8nmboXmvtixSv+6lClUSR9lqTZEsbr/bKNXvbA==","shasum":"464c8c6c6a2268ff5076ae0742da307d260cfdcd","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.15.tgz","fileCount":1455,"unpackedSize":33717922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1XcjCRA9TVsSAnZWagAAZ/sP/RSRjUfMq5uQQTaJVkAs\ntqIKm/z2r+cNTjYkHfGpSQrEDxPOehRz9NfdqGLE08OP1uv2kU5eJM0nsqXa\np487R/U8RtZi0+xhmyWwdE/2/NlDxDbgocIQV9Yv0Uk8n7auUEHCsVJphFhL\nNsfmFyd5k1LPfVThTW8Kfp06gDRX6hkCUlw1RKD3dED2b2lrRKKtGsaAG9YB\nPPKNOBXAgMuHm08xDZqvqd+y/cDGhpeXo5NoF3ujc2kIr4ILAxkIJoRS8m9p\nnEJtqixY7PxkocMCOEzb79EBo6WOaZinPYYHDFtZOUEnQGIdI6ISsGfwGx+R\n61TFB7kGMsR6ecGyCMz5ljfBZgWVYGg4cfiaFtUWqdsYRpZ5X/AShgegWb7t\np2lKl5OMVxIdpMWWNf5tZAOrD81MRPbTSUn8mWNwMJuNePRreQfL/VUkVAOL\nW1rcMdhr74rd15Q+zlUFt2B4kxJdFtaORFeG/MCcJyaeYThh6bAavBSD98jR\nWTyEfkf683ipORKqmq6IjXPeQayhjaH96NXKwHPGCN4sWWBJbPSV+t/8mP/a\n+E8wmHkPmqMGwBPyrtJbmr+9W0hDXFAlPqU/7FLg5PkzRChetJwdCCHwgbVd\ns+8w6z8dkR4F1ueKSvpOn4skFaiUBLGnwHt63ZXJmoS2BaWafuzVc4PbsFWn\n9AXj\r\n=hOUD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+EsWslEFXAA9P2BLWYsrkxgrYStitYMUZWxW6shYMIAiEAsE2UbPjJQiTZTkP594aw4/IydtYwlqBqdxXfIMf8BCY="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.15_1624602402862_0.9105376693952894"},"_hasShrinkwrap":false},"3.1.0-alpha.16":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0-alpha.16","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0-alpha.16","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"7e891e80f6c426429d06df120fc1301e4efc6d28","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.0-alpha.16","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-jplX7SWhTcKJPvGyHxzkVE5GSWZ2RYGgpXOpJZO5sJ+qMOCzWFbLc0OI9DFQJsZwbxL75RX2fPfYmgIK8vYYHQ==","shasum":"b8a0d1a63ee3725340d1ce0f7f96c33b966099f7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0-alpha.16.tgz","fileCount":1455,"unpackedSize":33719582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1iv8CRA9TVsSAnZWagAAZeUP/jFVrsfH6UC6imbapVX1\nzlEGXztnO5l6Vcft7YS6jRpKfWVkFDUdiHx7Ko0h0csVcjbv3jHApLP5m39C\nB9QDEZSIStJ+Iw1WMd59w2GaDok3N87VmyOK/rxoQmTObLt4McP2/aJCa/ax\nZz/NpxjVvDwPPcqE5OPtMcYXU1krxRGbi2m7mQMY/qaxGepw7vsZ3N3+/xqX\nv5ZQXFSRNNbSru5TFRyVDDQRWmZnacLzLOB5uTvpS0eMpuqkPQcZhCS0df1L\nQbzz8zgWjhwedOoLZJzMpnCTxjvAByRLbBsuvFUayTKZpQuZPNPY4o+SGjQ+\n7+Y8gmB8D1WP9eAYilyzG2OWhDxtc4hdkynVHiY7gD9Ps7ivmcntUEnDd9JG\nx22jEeSlkexl31sGAPOQ9bPC1Y9RDoWCc68bj6XG6CsQ2mfOSRQ2xDE3aMVU\nbzeWp69KK7MqXeDkn89MHmkmPzuOeCkQjhH2augRoQwgR+kTOSD/Qi24V7d6\nWqCMxt7d3VigVy53771xPlXAtupOzogv+H0lJ0MgwH2tjjxtDTKOwuhoOwqB\nNxDuMpq3W2Rd+QAxp05UXw2w8jEA7M4j7g+CcarZ7DXjNO5ZdUYtkbBItTFP\nhynmJZeOEIuO78i0jQPBbp5fatMtZfzAS5qijS8P0v8rI91yjQTGKL+a5iGL\nmu1k\r\n=NEAm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX19grv8SZ2am+wqsPToXUKBg9B4CPd/5FdEe1PtnKTwIgWPpo/L9S3FxcDyHHFh3rIGT4LH2Pctm6eS7Up9lrhDo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0-alpha.16_1624648697239_0.959243358582311"},"_hasShrinkwrap":false},"3.1.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"d79fce993a37b94eebe493347adaf78b823b4054","_id":"@sls-next/lambda-at-edge@3.1.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-8mhG7HbbT8IQK/6uJHpY43ynXuwD4FutVU9PVpF7ovP137J3pvLHEKWP1+bJdT4N3p4U2pL8h2aEt3T6b200TQ==","shasum":"70ab5cc69f13f4e5abe96c082fd3e088031b7851","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.0.tgz","fileCount":1455,"unpackedSize":33719564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1k6OCRA9TVsSAnZWagAAXL0P/jhIz9wR6MdTO4wk3Zxh\nrxgZbVbz4SE3aZ9PWVnqJkh09W85S1xCB+U8Dik933LbUEGMgqcnyPyKCXlt\nVvj8cQqN5QMDO4mbduE+R6Po1ImiS42esAlRKALFpji/B5LgHcC1kcBAioem\n/485PcLjW7nAeNk5EL0US5x79uOKSBHCvFIUNPOUphULi16JCIlUyWFe7oGx\nqf2i6HAQj9bW+Bg99RdW1l8cNcRZBFbXrIGwyVXbJqMi65qDtd3VkVcwAFMU\nUYjnPTg/WxFOMSs87wZBqOU1TgNpEwqcCud9wYqtO/7A+aeNx8nocVL5DooS\nJJ9udjuEqxm4ykiQIBjQTfj2xaaZpoE46wXI2LV86eSR4/nbT/2jm3Zs4QNe\ncm+bz16t6NQmiW1Cu86p9eOV+xSHiDSyNMU8WGyKWBG8mgQjG9j0dPHHLDkN\ng4jzNA76FhvIhFJh0l1wGEBiv/DP2D1ye7nD3Bixx5EBowGSvQTYbtTNEXKs\nxgf+/X/LvYi0s2MTxlqBbJwxjnFK3tqwwCy6STLq8cEPb559SnYqFUEgBpRn\nClfSCf9hjJMQSSIeHe2T/ejQDuRwAgfpGG1hjUpc4l4lqv3FpvCdkX6quf6u\nDnRNJW12ly+ilzJVCEAaQ3hYidGPFu1guKd5+60fbRvudar5HxblgFeqlxi2\nbHvE\r\n=dtdn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7qYznWDv9F07x/QDnrKtJ/vq60ppBJIfdcLPR7hQ50AiEAw856wdOH6RSf6gAJWAHT9OVCrlM6UbPXt2gEiXKYk08="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.0_1624657549775_0.4519398829035446"},"_hasShrinkwrap":false},"3.1.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.1.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn build","clean":"ts-node scripts/clean-dist.ts","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.1.1-alpha.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"e8241463024a72d34a3a63494af2f1434ff8973a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.1.1-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-pYdHAZqLZLSTY4yWXanrpXstaratqESWahYLhPM2lHfrSJWEBbiDB1tha9AIXjNbr6aBJ52v9wcexwPQ4PrlZQ==","shasum":"cb8f72bb702d2d770fd27011129c6bb5644912ab","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.1.1-alpha.0.tgz","fileCount":1455,"unpackedSize":33720246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1naXCRA9TVsSAnZWagAAt/EP+gLZE6JCRAPtd4s7Hnmd\n2RyFQ3xhlUCmFEYEKMo+To4Qu5Hl0NCS//SME3hTUQq0907Ve9JwyTmrYese\npr/bc7lQ+rwLeIOgzSoTBk9ExDKNRK57VSKBskXIB9EGuvh3mF+MfmhqwN3V\nXMTwz1dYezN2RMjbL9cA3DPUIEyBXd21lnKFgz0v0d5kyibLKy/U46lLQXhr\nA3M3dMVsC9K9aZtDi5EQuSWvtjI7au6u5TIDsyLeWLGts8xAGHJRhIJj8JZa\nAl0kfuUYvq/E6XJM1Bml6qw/HYYzekG5ypkLTu8/L24j3oBOPSqjO/2GPmBI\nj8DRV734/O2+Mib5SbzUA0ZKiacm+vS4PlxMfbbj9BxuZxWwModPtmzVTGlF\nwr8OC0nYR+Y/BX7TuFanblbOMOAbkLlnP2eJVaNdpPI6k3guMcZxX5Pu/InQ\nZNSXRU+EDf0a2RQ7hot1Ccv1xVHoEKZC0nvHUBkBrCZqFQ/TFJwSewN/L4Vf\nF46mCy0NcJtKMW1U7Kwy6N2E3LOsXIzYCMj1yhZlgGklYUz+Hv2nrOnQf0/Y\nbPaAVyEhK0tZBlCrFRBLYKZoWX77HDF1o0eYX171M5s/S8PbTWdOy2APtHKA\n6J73Qrkhk9Ir0S1Te72CKGoMJbzG0gxyVUlEvU+MVt2p6qgOr0UAJvSyAJul\nMGIP\r\n=DrlB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDO0cutT90Y+QyM9PNmvoalrUxGzt6gaV1cH5DC6KjWKAiBQ3uXf0h9oKGKSx33eQm5IG5sE56carnlMdCTTTYHPGg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.1.1-alpha.0_1624667798320_0.04916715816719508"},"_hasShrinkwrap":false},"3.2.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.2","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"gitHead":"8b595620da11e413803fdcc891dcd4b01d425dac","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-KbBLv5iB0qVB9qa8dAfURiu8Ew5a8PVvxlC4Lhrz+AI8WDTndctZhuHQ5TwOFjJ8zWRYa7DtFDoECNmFeqzfxw==","shasum":"9000eb733c987991ce6d9b0fc9a27fbc0fa01eab","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.2.tgz","fileCount":1455,"unpackedSize":33720271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg17RqCRA9TVsSAnZWagAA/KoP/17uZnU4+LHIXIrsAXqV\noSrXbrY6dK+s1fH/wpa50aIEYBgt4B7q072kptlfoHclSg1Xh7Umex2KCADL\nK0pLIw+KiJhnASTdhcG0KjvqYMaGZ6QHXYEIFxH+xtpmHJWz5WFAnFR+zrkN\nT1ktRPBnUZ2V3VpSyRJEsDBQ52EMPdZ3ys3otHswgprHXqcreVe96MwLaw1l\netf+8TDYhsdaL5AGwUi859TnPp+qOGWXo+QClhLsJEHl7jeE2KaUOBxnOyxQ\nXev0oMNWOBa7J6e0PsYzILY1VWFQ1mYtkAT3wo/6GVsByvVB8UDUFBjyCWIF\n+weZOs93MjBUBDODy+1mCbHJu4WFxxVkdZpnH0yhl4BZmdeFn+0nan4fkz0L\nB2A0+rzKajuGbFaKw1lMrPhobkbnxpXgxjCqTFZLzLXmUBOfgjt/IG0NM+GZ\nATVPfGodcdvZnYiClJGKW87CeJJ3J5Y5kehEc4CvbeGvXhCXzx0/a84+ouVH\nTT/qf+xP37vFPHvpxYVEvBCy0uhmLp1FMnv0QAXfap11qzXoH2z9OE5sa8Qc\nSm4LWFhTyMMq996JY8zSbhHwtmkgRmzHGE8T5rYM6d+6rEEXUEd+5XTV0OVj\nXifyq2ZqC3F86rfW+IbonfNfLJD1Wtv0kH70JAYBAoGn/vJUWfxLYhWxvcPF\nppyK\r\n=a7J7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2D5mYW6oKW+c4OnmHDXgespWWGxfD90/lTNJKX51+ygIgelE94WDBu7eanp8u53yweWGL4FKEUbqkI6nrL8wftH4="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.2_1624749160112_0.2765156320851183"},"_hasShrinkwrap":false},"3.2.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.2","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"30e7d11abfeed7d0d4e36a21e6edec26a01f795b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-ILTW+eRSfOAq1zgfKWJkmazyNE1t2aqpcSJVxdhO6u6UYQfpfa8B/jQ5lgt3/UclS1CYDRznbVmwWQwF8T1iXw==","shasum":"11cf1288454fea32d03c4adc119a1f6c8a3bd283","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.4.tgz","fileCount":1455,"unpackedSize":33720332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2CokCRA9TVsSAnZWagAAVfsP/3cY63OpUmG1RdDhEx9g\nPgDtuRTM/ilsDEvij4oj3Opi1bDAuUHcntPef+9eTGf6UroZHTrYLNo5C/qL\nrSTDJCnHI2pEXren1kr6Jb0HFsDV1iiTcVzRbM8kj8QAPxGNb7ZGsjeGnYwE\n7gCC+WpeRqMOtXg5GcHpkuNVY3YtpU3i2jdajZOwqVufSqZOzDsLrhSfba8y\nX4WNf4MzpNvI4qQE0iUg+B2lJ3hwdgCZ7w729+r9w5Z2uky5d/yhaIHiGx1M\niB1ohUmuER+54NyzRPwpzb/HMdLFp7vkvstBf/C5KEJ5oIKfr/6U/FEO3sEP\nK8xcmmZFma/bZAI2UQrkXXXFhhL5cDGFvt21zFfX4rkcvlTxsroh/k9UYHI+\n5DvsxnGAGAhbhEG7IbMZTR11dpQUu/jkypr07mME0EO44b8laFoBNm3IgFOh\nsQ1vtPL/NJe83ojD6NTfXB/9g4SCVteGLGMZOFnkP/kOyfgtt02AGKJcKJ0F\nI0EooJytKm7F4P9wlilzfb1mNGSAkc68X6/mIDedkPKia8fOXDLv9P9LQ4LS\n60L0iT1tmTrZo1ZVJAnv7ElKs4fZyEFuVm82/JCr1xyVNkChC3iIFprJc2hC\nXlDpDmyDzoMF5Joc3OY0Q3PjIwoU4Xh88f7dmwN4WLgpwh7i1ybDoh+0phk+\nlNkR\r\n=7dle\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYCApyPJGL5mKFPJ9ryyoMuDlpqNzXrj64gaTTS1omiAiARg5zS97LPd+ETYv15gdIxywrxFF9frurOvC+DGrz5GA=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.4_1624779299985_0.1664826347536532"},"_hasShrinkwrap":false},"3.2.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.2","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"1f812b409e42e8b5244ea18e3219f27c87e88c73","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-FXoHPuM9VicEJ0L0XB3NG2aUxv+hUScylK+5365BEfemW7TDeeSmuAAXDMUY8GNZ39HbRtVZs8Hkas/3jA0Khg==","shasum":"5468e8f5511c2699cc6c77e60d0f70962eac4dc4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.5.tgz","fileCount":695,"unpackedSize":27922474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2OPwCRA9TVsSAnZWagAAr0cP/2IN5FJxxxvpd4sh+F/B\nu/L76RydocFu6EFIjkr6Zv3DvmtBtT3RGMdAXdDY4iql8QYM1+DGZXvbr/nU\nmmG8rjzKcq4YYaWJ/Nq05+FxYCd9muwbwFvypBSCgfre+NX8FKnE8GpdG7n4\nwINVtGJwaLPPylYspoaxVy40hiCA8V8OMw7yo8IbzC+e44p7RJ0COygkBAHW\nbLprgOmPbfGYffWpQzcE45cFIH5J5QcSAA0BzaGrJMErjpHD6buNrendl54n\nqwoIVyAz+AfO9FWIMKrko3p1e780/ekAonCEbo+6SW5Fmtg0O83G4HRQNYi/\nFbnZv4xzXiH817FwGpMGTHJe3TRwOnFfUCP9OhCeKf9lVUVNWgrYDCsZdD4T\noSa5GjTml3SsMK14LNh2rHNzn7zbTyMoPYHpQg9U2szlCV5+9ysOeILWdSnV\nC9WryHBfJaT91I2S70vVGjiAwPvavYLMbves0LbxTvupwNCW8I0vHTfXfGRR\njBH2gwshttLYX6pImcz2QiaBr+8Y2XxXEV2/lodpzhIhxcJhUEiPW1fqdsOg\notYB7g2xrKlz7zEDHGcEXZK4oR4K9ta1cPjb2jJu47C83Q27ZKZoFceQjZ9M\nBjHIOGZjq3CQRzo5x5daOgv3gE4DH52gJhS88k/BSy1potwQT73GUsJu3wKo\nPmw9\r\n=hvcl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEppgYcfSKuGitF8fJED4fvT4FMlF03Yy2+7Sk7SPZB5AiEAsqha/75bf9hdc0L40oHs/I4W8LjDTNGWNjFBPq9o/yI="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.5_1624826863663_0.06647254784728784"},"_hasShrinkwrap":false},"3.2.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.6","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"99d0b56744d9215f2cf5e2b0d5bb92c07cd7132e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-xvn6LG4t93k/HjhGjHZIst1hehcHAkjb6CVa06V0kVTZg1UIAbUI5mAfrXanu75Sip4BHrtM4dggVZo22xcyRQ==","shasum":"d9191ab1ad9c1cab269424ca46f3bfa090f3324c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.6.tgz","fileCount":695,"unpackedSize":27922474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2QH8CRA9TVsSAnZWagAAfrUP/jPQsH8JJNGwMWYVSxFK\nxs81HkIQyeasNuMy8VVDuqum3nw5b07kAad6jeBosjFOA1RvPdQDz/XpcM7a\n4Q+8mBNtlEgXUWXjsI+f6c9gVG+7eElr/XBYVCDxu5jsWPLQeLdHMjFVwkfk\nIVEApWz/+1fLzPEWxiY02GAr+2M/0kMyQO/DdLrWMq9/xMjQGjZAYVZNG3P9\nGrq7CnnzzLc7dT3ka71bYeUt741vV1Tq/s1hdQ3e3G+kIkAe4B5V/lPdUTMO\nAjUaUdJUP2yDs+34drrciOKlMjUhDgcDVLKNn3bjGR7ZGnnFi7R7HfcoC9rx\n0+N3bXe5uo206P+76MqMpupAR0QaTsyNENwrbQ4UitVQAAw2CDPaKYB/RRvt\n19uUskUGEUTIikt1kuNDzk8cVWAzZMkgOKNq1tSpJtSMJBZ1d/hsM6r5GGha\ntLUmXApqXYWadYRkUehkYMZmGDsT0J4AeMk0Mq0mGJhTJ6EJKNiqzIiG12l4\nUzOKK2GkrfUkgz8/QjhlGztoq5zqcnLAkr+VmXPaoc9QRVbapn0Fqcc2X0xC\n8EJD8DQU8wXCCkC0CzcGA3EcUUUrpyC+X8ufZBX+qO0+KtVphaFf8/gApQcB\nxmoHjtjBCGbHud/Kfg/4YxQmywQJIdsvLo+MHczclkxuoHw3ixOL2w0RNnkS\nxnKU\r\n=j9nc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOkE1+UpAs/MdDxbocLpM8eOpLA7K3lnBHYreUf0nwjwIgEOT2hgxJODieSCpzZHPIrhyPoEjSMtmrDANeHv7U4As="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.6_1624834554797_0.8729422167835323"},"_hasShrinkwrap":false},"3.2.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.7","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"8a4648459d312cfc2b01b7d4c6b40c110ac98418","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-SMysgY2yjyE9uoPELZMFbkODfOTMobwba85kiBzBnhzRvMv8DnA+3doceXrkl5TamT5/UcLAiym1PZh1tsDZLg==","shasum":"7c936863dd124a959471a619ac01224429ea5662","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.7.tgz","fileCount":695,"unpackedSize":27926915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2S+JCRA9TVsSAnZWagAASLEP/ilyc4ROgVV1Z0lC6Jx6\nkhd+7xFBFC4ZkdfgP6nyXWtjDEcLholdFGVm36u5MeztS3SCj9/xolgbAeum\nF+OkmsmKPN81VQORQ5MPehUv/BbxhLBYwz7KDLvJCtzAobwbCuH6LpeEp9rg\nE3wHj4xPKaJqYir2tBI+He0xvDGxRUVEbboJDmM6kwMLrRpdyoXXH68ucCap\nwH1JRusc1PHsnbv8o/rRA4/CaX60brRAS8XqNV2f2EaEeCJ7eejuie5qeWsQ\nq6mWILOMiMdMgy8051qiniFWMXYYuQYZgFx76yLiZCARk+UWkrbV2OWV4c66\nlWLDM2GLSE3siNZKVWwXBj6qL0FcSoviDlBFCHWps3Muy/0qeNGDXXjeQ0KN\nQgD5Z6qEsNAQRwA27uqg8yJtUeyaP1seOqoZ3hSZ9wFPDkYsUkBjOGsioz5n\nHN+fYjAdjY/3Lv1wTKFNfBJUnrpPL9TDv896opJLNUurj6FbexuwyE+Iu5Y/\nRgixZ1g4SNmTRGOTs24dnuTC+ztGCO0niTg1YqfdyLbBX3ZcYyHq2SqKuWZy\n+ONae3nxb6eLLwy4wJSxJ6emgkz+4cjxwzHhDi3BsRqyus3Hzeizrwv8bZCA\n7twWddfEGvsCNIJazR85pJxc4MVKmkELqaN2uxvLA9RsHQ8jT3XeUO/YMPC2\nP3ip\r\n=uoOQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzQNp9xBVnBhoyLonRnbCmQzy+Zh7kebNCT0jKwQiB6AiEApT9htDXCpgY2jhpy0k/cQ2VViFNYKPpslhK9NuboXNs="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.7_1624846216726_0.6534989805922247"},"_hasShrinkwrap":false},"3.2.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.7","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"b962279bb0546e30665b9b98c3d24fba8a839d70","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-vTZbj07ry70CgK627E7Lm2Xm90mlFHyl3q+vlQ4ck4/bjZRExtakGT14+L4ZD6Jo0kuwtZjjjcBoI7OQNsbSnw==","shasum":"8446d15d5b8357640476e7f3736d75f2850441c1","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.8.tgz","fileCount":695,"unpackedSize":27927000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2kjYCRA9TVsSAnZWagAA7yMQAJ8eHgbuMHPvVLrKqzh1\n75FlLQgvZ6J0jmRwKuBdppEyYyirbDqwW1zzBxiEasZbucC/+Yi5LsMANPlk\nNVOYDl5CRfYrtpFpXZIO4/vK3kFtDg/JPXCWSDEnVNM3Kb0c2AF4HtbN8ih6\ndqcNpPTkZIJtPNgTGPUEEfLgk3cski3K89RKkU3bfA59qJF4fv4fHSjHGMeR\nVqzxu3tq8AZJ7ySAhOm8cBx4kC34Rrt3MMUaSOya5oz9coP4bGfC38CFleyK\ny1ZOs4dQ90A/CuW4jQYMmWujYXn3AnJO2wWyvPHrd/pIooCKFVtbzBsvv3yV\nNAS5uluqBMwR0QssdvIjsNXZgQaNP74CRR3FqckFQ9I6BvRuXGoXSV1LOJuw\nOTJ31sio8pf2oTdHfx0LNAFpmuA8/kbrlTYDWvJBfF/i19MsWJY8WoIwZwqB\nfks4xHhFvM6K7q7Pg4Qf4bj4NBUdwrokRaHSxYZkmvPWVlFrtptmfFqhzAL5\n4hLMTMBMuZU/mMuSXPfjSctMXOEbSjV8kH1jTMiR6Rju1h/kLU97I5he97B8\nyXItGbP/c0fR27TwG6DtGFogPQ+yZIldHppDD04s4+z0MJ7UcEa6AKjmdu3e\nY5KWRFdbzNldZdC9oKJinaMbGJ8cVnfQ9p9orglFpwyO4ZEyUgkHjOIVET9l\nCsa/\r\n=PmK4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0SpKLf8w9TUiZsvt13UvByTykPxqSugPYa7Tb3vlt8AIhAJoiBiH2sv4dhqo33BEd7fi1Hzh9YUvyo+jd28XuXnAb"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.8_1624918231114_0.2997943365058826"},"_hasShrinkwrap":false},"3.2.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.11","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"a7f17c8eb5f6b613668134dd146e886953ba7d0a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.11","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-6zkZqRL929Ysfrw5ebdLIYC3QFtBxnVQuCuyX9CM/1MLrxdZfxGhfQQ6g0BjIZnRhHUyCpJRaLFUhU6uN9Jd4w==","shasum":"c4ff9264523102a22b82496a1739be4c174c531a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.11.tgz","fileCount":695,"unpackedSize":27933954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg291SCRA9TVsSAnZWagAAijEP/jAOYaInizwz9auJJwG1\nvCLnr3Fzz+y2XRz83BgorRnUuMPvVhlIpbgBlUn5KoFSzHxA6L1b5RWl+5pD\nlagqgNB636R1DJQLmQnwX/erdBwKe5jHPjU2VVy196idMLWtaqIKRaqXdnzK\nGZQeeLfd66izKEBntiCvHeY7TP40o16xnBGFhLCTfnsZclLJ+fq1KBrko26g\nM10eJAb90OYKqFVG7EN1bD2G4QypisUE2Zl5BFx5FJdHA7Bu4gRfU1upVWqK\nHVRJslNwjCXsZAnpxUCIyifSRIS8Hzsw/mnPg88l3cy0POlLuskKLFucAQ9Q\nAO0sdyP3uXPfFXqPYcAZNOBA66OS5YU/ntElNZNqqcosCe8nWe5snK2eSKEG\nU+Bc8WeoJixI3NbOnLB4/DDM6sbHyEHVzrf09YxQG/07pMWOpnIkSt13AYok\nb1moHqqOnCuD0PYWfRHMaqfZPquKANnoKAaLQaWA3w0NkZDOPfrR6kVnwVk5\npS16AMeIkVh35F7iFGk6siM2Gc5dzYJMqbPeNetBwJUBqBLeM1uPU+dQ2qSH\nDHDlVVYKZuoszUiF3V5YjJFDP0A5tFASJWOIUKIk/6b83eWCTOh20bhm39sL\n1ZqldHgJTaRa3MkjaoRIYz7evGap9BL1PL4MPvc4hceDMmL8rPgly2XYtJil\nEHCJ\r\n=LsxQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZH8RCg/WMCJTaTxjAJ0C5og0gpEUP8c5G53ie3zf1XAiEAuHCNp0l22iohP4/UXkVnXletPONzPw4ZYzb7h6VwjSU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.11_1625021777350_0.32471878635072615"},"_hasShrinkwrap":false},"3.2.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.12","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"dfeb45830a08a5e751b3b0cd56fca73d7a623b9a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.12","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-tQm4OqHYkzHCwntGNe6ML8c5URVZiFT4b8R9dcJrS5TkGVr2aLA7DF8vpR/tQusrht7M3vP78lUks9jvP2wA8Q==","shasum":"74f52aa067e458cefc57d0f9ea187c33628961e0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.12.tgz","fileCount":695,"unpackedSize":27933954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3URUCRA9TVsSAnZWagAA6nIP/iXOlr5JHJva294G42hs\nzt69tLlSZKyr7lN+HAgn90pbx75bY2CmS554hVa0RH11/9FSI2+UCgZUmZvp\nBbOTu9SYwfYARU4koqXceg7MtU0Aqv8WHOTdT9ilrV4BzvCKQxVsKpuFMYpS\nN3rjoEPRmTfaSCBulTgPPQ6KkPdD/xnvUu0LxmAFMS52krOBGQJWLFzZ0eDD\nbAmeqCkrfd7bq7/boE5LUExKUMARW1OOiX2f5gImPDodd0sCv1TguKqMrUnT\n/UyDiLsfgOwBe/warsc3ewT/ezUrLjJDe7OL5+4MqmmoEiEHmkRHQ104zUii\nK5pk07MH13/HVUGY7rNaZup0iQ4/6OQsQEenwjOGp/KPY8p26KXUI/vgpS4V\nNvU8KIg1rSuYq+UCzxKJIw17U8RTdIMA3oL+AZFUnAJpl7UsT3NTMIKlLg1b\nbdEkm2S+XkArJsDpNPn/Me+Qktxh4NQEBzoMDt4ONVerGslTqEY1d+GlLCRp\nhG+gfiNHwjmXcjHBSMb+ZUqMfvcpBOinI6cKGq/L1voOrr0cEUO/sBWIwxOE\nJwJ8mUUl1j7jaD7g5cJCo3HvAj1lNTUz9EbOGLSuiQqqU1lgoy1wzLqzMxJq\nYjyNNFU5bNg7aQ+bz1qB6yBejFX3s0J9oka9a7YZl6dInSZmaUnsSknBxcX7\n+d7r\r\n=FuxA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWyWmDLV9xpncxAR0zyINyhVm5NHEMzD5w3WJmgYYs9AiEApHRAGLmHI0MyXc/Xo6nk4Hv2p3DGTBPqQvWd0TDRQfg="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.12_1625113683664_0.0788692338696606"},"_hasShrinkwrap":false},"3.2.0-alpha.13":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.13","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"3.19.0","@aws-sdk/client-sqs":"3.19.0","@hapi/accept":"5.0.1","@sls-next/core":"3.2.0-alpha.13","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"49b56a3ec6ab17c8fd910ecc9d5ed70033f8ab3a","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.13","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-yCCLMyMJlUZZG+Mn9FBm/ATK7v1QX5NqAxZq6JE4pTEcLug8kmGNz0QiOfC6AnvY4WWTtOt7OWfCpDdwTkbqlg==","shasum":"b2cc7beb81414a690a05a08d353fb66f7f0bb73e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.13.tgz","fileCount":695,"unpackedSize":27933954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3pzsCRA9TVsSAnZWagAAqJcP/jv2f2JHaJZdA+8kVSNm\nXPfORMZtG6LyaNkEyIUKxaPZhyE3P+t/uBXWKKmtE63U+si7WjDgUXuP4+hN\nOTc+LcjtkEevh3F3N1xFBgImIRecTQhnJVbcmQshdiwRNYAeXKVu5AYZMh0s\n3D+maCQGWyxvlgbKF5q9s/ViCN32Kg0pU+1luyGHC1MJCNDD5qciGxR8np4M\nkHcPFReeu7RNdUu+fw/Zf4fJYeehipuzmnDNRLu89JINj6hAJeqYdOt2Ll36\n9ADMkSXUUYbPPvKZfsNXw/makSmX5uigI1yk3rMCqzlJEN/tOeAHijfslE+a\n5Ump9loXpLU51cTesQT5WHKihFIt2oVmI2Cnp0RHu+oi2IetUQpH6wcaLqSV\n05TkwNf5v3Z9MljVc60oUwB9LGOQ9bV/TCVnj3Nes9a6ks798Uwl3j61Tunh\nhY3gVrlm2+InDXVO0E5OPxCs8jrFuGtCMxEl03Y2OoraqD2RSUMrLL/m8sX0\nAIQeiQ3G1h2Z9a1oNsoFYSn6uwP3vGwGprFQStHJmF/HqxMWCQGClVw3EdrZ\naPrh4ovsVmiONHfrcOfjV0eZnYL+zXnrS2UfUrqDuUpC8tep4x4eNnFba442\nax5HGsPVdnnUAwcyOW51MNtgWXfUKLq8Md06LRX1slZ4jGtHtO7phpDKqMXr\nPgWc\r\n=QVpO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsvsRqIlFuYrTFuE3f2d+KZtm+QQ4mCWGWYnjb2fYa7AIhANtGXhV4SKKwejMTnDVKhG3CW5KxDE9gDJ8t2lNqqrdo"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.13_1625201900249_0.8689958168741763"},"_hasShrinkwrap":false},"3.2.0-alpha.14":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.14","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^15.12.2","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.13","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"9a9a9004979385a24b8e7cc711017986fd80ea92","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.14","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-M3YymAdQj6+DC0K9orsHtVookVXf2ueOan8E+i1FghUjrRKxOEIllAuhJEUZlJN1y9dhdU3UUyHvl3Bcemszdg==","shasum":"69d18e372ad33b0bf8ccefb851dc6398eaf41b62","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.14.tgz","fileCount":695,"unpackedSize":27934005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3sXMCRA9TVsSAnZWagAAImcP/ifT4TAMU4xXWI3Iw+3h\nAoAK40gC9PvkeWdwVYQ1OXGNPCoc/4p7Dc4cZGuix233fLNyRs61zSSbmIvz\n5XqFYX4TPSXG6vZ75nfzEZiNQKX8HYxMxnK2euCItZvGWUrpr/g73o3X4tHj\n85hE2NX5xARJO5zuu9c2R7M/EBN4orpanRZtzx/Btgwlg6q32NONj+9/pUza\nHmP1DNJLJPaimnSPj1ZTnWOL4NTsNNcqc7BZWlN4RN7K9cUnfuwBMOhsvQte\nUrJQ+2LKtJgnjmZVxLbqnLFsExhUaClEpuZB6NzDyvegSnGrfMv2lUMCI3CR\nWNWN65h20iN8xQV6p+OehSzJLib7TYCPUIzgOvBhO3lMDzoA1KJqZ34PqDGA\nu2JZH9Q3aeRM4UTZuG2hg7DLPdTQ4Gq76XyJrjC6o+9ySfTr7mY0GtaD0pDd\n1W1T9c0yFi9Y/3acaw5NuXHlWF9HS/5B4w+IlbOnfhZrLp9gjchu66Az2pnL\n0S3HcmLefmWswE0SssZepmIlToIKyUiZbFR7rbQbEH/NYsN45cZtn1so5xKT\nzOjqrZD5kFnLSVB6P35a3YqY734wGy30ZSVaIWJG0A7vDyoCMfMtIPu/X3BC\nas7DPIwvtWtAQ/CI16VoalO+U/9xfQgvdUGGKCz9W2jWQtBFrx7YIG1U+ZSS\nDIKq\r\n=I+dx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOaUjduKHeAKMyqH7iBhjv7ZPFkDZYYl25bzONckJXbAiEAz/fFXv6Vvl4Q6zIk3KztKji9xUNHsfiusas8JMkrRok="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.14_1625212364026_0.48569988363182315"},"_hasShrinkwrap":false},"3.2.0-alpha.17":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.17","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"49c32f644e94de37b0018b118bd2b00c320354c1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.17","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-CchtPtE7dChXnjZUMoNdd8riz2JJ9BC/CxKyGWWdrlHXRwJIZB3q8Ik8JbJ3v/vsxss0vCB2EEEBzuv80kDSVA==","shasum":"38235a5834786deeda63fe91a7744425df18c299","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.17.tgz","fileCount":695,"unpackedSize":27933921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5e3cCRA9TVsSAnZWagAAVmMP/3WLNUk/qCNd23CNAf1h\nyfZB+LuQBQLsC+lhJpvq4aQ4zsCx2xyzxqZSZFXm/Ot5evp7TLmlxG64kV1Z\niPEZhgXscarRsPWrdyDZccw2o5n3gpgmFYkmOvJC5yO4+h4+6ciP5LxGw3+5\nMiO1BzhqjXXTE7ZMNodhKB2LChMjpj+ufvDXooRveDxbgk/32fIu7XzmFXXm\nENH5GI02ggOMKphURtRyWeqQKjcusz2qsM6jHcyxMIh7Z0+8Mj4eaYr2vPbp\nQbAy6SfUA04Cka3uuayER7+x/2KQH9kwgEuf6EAvqt/mwp1w1L3AHDi2jPoo\nKwK8Wl9fhuUy7PWqeym4hGxqFXHH+T+mVlK9O1TMDHsSd+abbVWMAvGhHMMF\ncGU9qPWxqyfkRZs8PtEZ4XlVoumbKJQHtqts2/tg23BTP7MD8xYNfmGxnEvN\n/aRyej7awEYib/IzxtasPNDkD9PAdV3HX4LnxOZZLejhqpDb3hUpuYLhMD/S\nsGw4AkvDFxJF+zZt6V0BxPLGdrAt5Se9r8sg62N8FstaOL6OtSJha/lKZkoI\nDNiDpsIeb4zWuIT6FGgrtA0AfcSCwYuRp2nHiITdJJecYKty6E+bUfPbafel\nSjC0nJ156t9xtBVwuEX8rxfmp+reJJFO9AnT2GGDIxJKPikCSo3pD5XKl6di\ntumo\r\n=5x6J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnkXFgGthUfW3OT+3UiF8oh/eNy5OETHdYajzjQdw/4AiAotJTfH8SDomQgIPPiSXkb89LA9LQkiCQBwitmi3LMoQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.17_1625681371941_0.36905507751035005"},"_hasShrinkwrap":false},"3.2.0-alpha.18":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.18","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"daefaf2a27777c8101dea188fb49438fcc206820","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.18","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-9fQqSMKRt8OrxX4qPqA4XEmYSmz9VND4A4M/gQAlahwJIvyaWAK/DY2esYT20Z5CAcln4YRDdwc38P8fRPHUaw==","shasum":"1c492af117fe0ee4b2b350e10cfe45163f592f49","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.18.tgz","fileCount":675,"unpackedSize":27897987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5zIbCRA9TVsSAnZWagAA1JwQAIvVfiApvdY4n7trK9qr\nqy4rWc/Lwu2f1MkGOZaFvu/ly7VphGMof15E/h55Fk/7m0k53fwjNTO+sfWU\nxF0mE9GXs/ZZQrK/8psqzz9nYW040Bb91BSPfKzBMN66PhsfJbF/3DDctSYg\n2O27f3PSD3iVYsTQI/bouayyJdd00hLwmubxRiGZu38fsl2uzec8xJtvcM9w\nnHq4UKm2tHhkzMOaTo/5hFU2+YGUYGg4d6js7nqClZadwX/I3+pjScEgWOxk\n3wdHsvQscftKPgMv7diEzr6CMjr8Y99BbymZCx4wZB2Wv8Kq+DbAp8FmfXXP\nKK4HbGzjoYOe0ANaO88P/9nxOBNM/FsVxGbUA1TVWP+BolX8n4gG52RZ5QzM\nzsx4yuZfxzN5q/EjJdrJv2bGAZFK68bXz4x9YHGHRv0h5zHpBBhyDrPvyr8E\noR8vxLIuW0i46LEM/L55QUzetLVFsv6ico5yf1z1OPlVJfg715tnF8qRuldD\ntb7smiHWFeD3ZXaCe49USxDE5E3JFoTN6HFhOs/d3KOZXkbWSfEKsBN/uW11\n3VBj2iA/JOO530MDBNXg7Rnujp5KtQ+j4OjNDiz9LRbh0tqtoBOZvEeL8BPG\nJT+Xq+gEx2WDV5tgbUM9YujCdq3vI0bnhCmBbNCanysocpZIIV5sMQL22pQ0\nsZKC\r\n=oqGb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGq9O3hA3pGMEqzUgIQ1BftXCOWamS9k4j5hBFcPXKdiAiEAuxXjwLlS9ln51DDR8Qm9VdrkXGgeBbtfaSJf7S+EKEA="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.18_1625764378881_0.8160864266159342"},"_hasShrinkwrap":false},"3.2.0-alpha.19":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.19","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"e564c0aa50bec285757bd8d7f946994857299321","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.19","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-6qSnyc27AuKMPOtNiONqY5wogEF+ajGSM8z7+Q+90Sdc+hNgD+/HyrcBtJ97HpZYkQCKn/p74Pfzx51Csfe7Nw==","shasum":"07c6253132d65a96aa3d32d2b01a87d18e9d50bf","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.19.tgz","fileCount":675,"unpackedSize":27898811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5+SZCRA9TVsSAnZWagAAROAP/jDy1gA1ey+f3YALzP7d\nIw37Hp8Ph+TZxrGO0Y/szb46ypsRXq2FiOum2PYD8VQCpXmnSdU0IT3Mh8Wa\nz51yB7agycmavfhiduMT2XO9v9euDT5mVSyzq0dH2CfAFv18akHLzcNb3MOo\n7BWApNqDm2vI0e0nw9PJt5hxqSSwbLaZZ6AHlthBqrtH51GZ0gxFme6C3del\nI5aiNTBO31YapjfxVGYSku7pRYy7Gf+QLycVE7KFmB4VIvDc/SWoagL07aai\nqv4njcIrqPF8dxr6zDZUfQtYhfrW1fOlYgLB/MKOmGT2lKN3w8hgj/5Vlm2q\nsoHOE8YIuoKjiHKZn1XmuVCu93UbwY9IcYFUw3nuZjsGyXdowKfaSADLoY15\ne6m6qAZ4VpezMXh6gj7qtMJ6rI3ubUpPuww7I7n72S7kkhGIdXB1gyC8wETo\ne2Sy/YvG3+ypAfmvbgTYlrTYEbYG3ZvCIgr4EcO/Y513Okex08IIOYctHqBz\nNc8pLagojZGTJL79PbEVv6hStiaPXQD0Nuzkuu5itFn+chbeD+OYe8nhtg+v\nYx1iNvOEyl7iyQnqWb827tdsphqNfBzniGxkOs4wTw3RFOWd/DjrBEdpXsVk\n+gL0OR3tp7ymOBQlsWnUpFxMNISS/A1vSFv5gbgsO13QMBLbrU8d+jleq7Ei\nJvWK\r\n=1i5w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWmWkQiIMwzxmO7TLyi+wMXP7Hnyz0ZJuTZQAPiAak8wIhAPvDy59/hSI0iQMIoMCm8P/5v0gXhqfjsCqJI56P8cps"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.19_1625810071070_0.18066824270845094"},"_hasShrinkwrap":false},"3.2.0-alpha.20":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.20","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"510b56762925394cf1756b8c1d2ec1f222c31ffa","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.20","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-jeyfu+L3XsXxaPgyd3dwpHDzuP7zTf4wJooK4FliNznZnAGEapFkBhe+H32Z6qif7WfoAewFltHF/YmpUne+Kg==","shasum":"d22ac39f914c78670a8ed41479ad305a8ce282db","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.20.tgz","fileCount":675,"unpackedSize":27900629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6NHJCRA9TVsSAnZWagAAr8oP/RlZGjFJBgur1bOzbEv6\n4JuBYOidiQdH2CGL8aKjGo+OSnx1k4+/89tVDrjnHLJNkabHZvbmfYS78oeF\n4fAPYa9YrV1aNtKJ/WsriYeblyR8hjRmbk19uIniashdeWCl1cThjI3x9vNW\nYL5uUl9Qm9b9/GDiyVOa4X57kt6HviMtqcOTcXd/VIJwtOMT9U0y/NuIwfWX\nohzYziyromu9jZxtZal9QmwPtoSeKXBBrbsQdbNp5vfvOBjl0Z5R+32bMTrh\nC+PHczZkloZN1eKqAtG79r9dR8ldLS1Y+M+Fh3PDnnJcZHjxd4GAHkJKbY+W\nc1yZovVmdk1rscy4zNGee4b/gM6tWzZ/wMKEjT25bfshrQyEKe2G+1CUaUwt\n9Unr47PBNWQuPMYhajiv1di7OCLphpuYRcPciDvqsOv50eNnwPYzm58za+tI\nBucEiy1gHJbbfkhx9aNn3Qxh1El4GmJ8wsPBuV1LRIT9n7BA8URJLRKBFrva\nlASIVlean1cIjOMp+y7+HXQXcMvy+eiyW1NzAhXG164afYlqk4LqTBDtUCLg\nbOhi+9E5SA6EMOMr9R5J/pH9EfR3+4NeESLqviV2u8vH6ZDK1oRjtD+Y2GpD\nw2zHYqZ41tdKZux5fkgy5sXyNKeKJqPCj9zWx0bawUOGPh0Qwn7vO0MvrGqn\n3nvJ\r\n=nHIa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH01LTG02RDeD63aw58nS6+sW++1QJdNBS56JtUPpjJhAiBTyUAMiBETEjkAvP2iJTuTLBik+rmOulJ9POPa7jTa4g=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.20_1625870792365_0.6297190822439613"},"_hasShrinkwrap":false},"3.2.0-alpha.21":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.21","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"13807cb3fc2ec375bbe2479176e08a2bd077a2b3","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.21","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-5LrqDaPFTOJ6rvzO69V+x+QaXO9b3+VYXv1DFKJ5kQOL/wSu+ZaEzNOkSukGDL+os3fD6NSf+7WkSQjDz7iuaA==","shasum":"cdecd5aaa43a4252fa3286d4cd590dcb9ef133ad","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.21.tgz","fileCount":675,"unpackedSize":27900629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAHa7CRA9TVsSAnZWagAAEogP/204jgLAwi22O9ntFfn1\nCrL1kGjnjpOGVAGoLWiEDHsGbRFf8hkFqHOuK7heQ1IoQiJTUJ+/Xl0B/WTc\nleY7PVqEILek221b4Z+gwqsTtn4OhXND0jRGPHuEuCMzOVMDnKhyQ/ZGvSRL\nA2RjHpvXpKelN7phaw/QSpoxpIp6Ttr6Vy0ml2Fo93x0AHCx21OHmhY+OCYx\nv9omEP+eMD4//ePNSWoKas1SQRDaKVsXPrg5yA46NmmYxUWXNLZBTFpNJlK5\n3JPpVQjZvHMTvcMKfmEfsbfN4jWj7BBhAor4rTigviPGSedkCDCKmefpCwam\nJhQyODabRvy1UyDW4x3PHvr13jMAJDn8QuITSJpwR5H+HVn1fpSH5sluYoNY\nLgRIQnA+6unUyGPPjEz9Bfqfpyy6WMkV+4hmkma18lOZlz7ySvuzA0rYowQV\ndws6EAwUz5Cd3lvVP3o49iJJXC75SH6A8o0YgFcAMycGzC9nLlSWId7U5mCR\nMJFsQJIyiHCKaQxn9f3tx+6SonglA6BbbYxlpX6kvtEeX6vPlzLEHgNDAPoe\ncH0FvAGPkFTUOTCiprnjsmFwbi0nePt9oj3EqNzFkihXizGEFG/Bp0fvsrw2\npz+2vEFww3jthDHtVx6THJlwbuLn2cx7pZJJbFd02eWlO8V2awUIm3X2b2fh\nkbia\r\n=ProA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMAAe9eWI+DcAyQ0Jk9lhrOPFMFHxkJRPXMvNTx6k+5QIhAJiP3AiOQ3aYRhjF+9E4H+5Zshg1iZ3VRmxKMOPBrj65"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.21_1627420346892_0.08179481772563779"},"_hasShrinkwrap":false},"3.2.0-alpha.22":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.22","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.17","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"15ad295ba4e470449801a9b4e4dfb34b5d9569aa","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.22","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-qoocMERRXrd0G2fUU7etZO65egutd0+neRZWZPzzedjtefkWXuhZWVaxmxj1NDFHhh0aBBO0dS5onGZ5exaP6g==","shasum":"db78a9514588a1940e46b8fe67759c4b15672fcd","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.22.tgz","fileCount":679,"unpackedSize":27904197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBXvbCRA9TVsSAnZWagAA81QP/2iOzwyv8ML4dJEvl7q5\nud25ZJTO2hThSAeRjxEcPpuUfpyUiFfiaWOfZTzaSdn3IGFqkxfaZRKdQFrL\nfI9iGZkaO9ys+FyXsmFBxG56PDsmZH4EiGx4TQS/N2ht/rmzFklGIM8Vxq3K\nIUrsNPjX9ZfOMBpW67evwe3cLDkYP4U6nzD3P1W+qMbKhzb9nTCeKFXQ96IG\ndZCG+s/h9JJRDcOaDpbQjBQC+tV6eqJhRIZmmN8uk/KPDZLwjoBDWEwqmk9M\nZ7mPgqJxEnTclyID5dQhjmSvrpUm4PTN5QHwfvl+UCqFANZ2Z35CMbjdcn9h\nfau6wxZYHdYdlZtKJ4N7hiDAWc7pTL8BBJvVhUcROfkaIOzAwVWzMEnE/2Ae\n6SWkz28K8gI29y+UDutCP+sAYBlnmbaMjKzLRor9XNsXxWKZmpI3njOddsjE\ns9KUxzhSmyM9unUAUEPe0PfGq0TlLria1L6AHNMHkXm1ZZ0vA/e8V/4tFMc0\nrJJLnfAl7XIywN8CdDBfO/Kb8w+2RN7vUglJGb+qlqhx9VkvVMtvH7akvDmc\nDSpfBtbZagOnkRP7Q/Msnvguy6sDTLxSTF1ZBZmoyMBuWj+LxYZ7WrKYH8ay\nju6xdwBmmPFq2VGZhbW3orkHmBDxVPe/EWwLLjmzQ8LrrOy0RtNTnwwkh2HU\nUG+l\r\n=US6j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAX7FvZxAA7aEv5RVM4ekNv/y9zK8dgpJhiwq0XO90xfAiBudYSZQDBhlmHZxHYaXHxWrs5SRU8b2UvUtbqG8hA7wQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.22_1627749338992_0.3303579162466084"},"_hasShrinkwrap":false},"3.2.0-alpha.23":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.23","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.23","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"6d76a79aadbe3be96f1c97b0e1bfc2acd0accfa1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.23","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-iIjzpNld8moAc4p+OWrbM0v1fEDXVMEDwI1dp2GjYgDK9x8uQ/9YuEJsqy6SxpaMGcosTlfo1Evdz2eG/6oyUw==","shasum":"a0c81a51556d8aa7712da728c99a5dbb39d09ba7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.23.tgz","fileCount":679,"unpackedSize":27904482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBYXGCRA9TVsSAnZWagAA8AQP/injm/pcLNOJt/0EFA45\nrhks6Nmyxp8FDIp9TLpXTLGfECikSe+H/n++XGAk2mR+ds4HpjBJHCJajdDW\nvooSDpni/0wDFukloHtlHs+Ej3cLKK7tYlhreWiUDs168Pbx7pPVv8UnmJKA\nCQvQ8MKgFsNAC/CMwTNPJK9hpNHWlqP6FKP9F2ZSpmZU4DcU0JpuMsAoAPV1\nDp0s7U0cjCBoim2M/4cER8f4VnH3Ux5qCaAvhVhi4Mex7hXW00rq+kmxPShs\nGzWOPicGVlij+IaKYXsiVdHNEDqI5q8f7asaJDsKV4Sb407kH6anak+1+LhF\nYYpl+yXgC0V9zZeH5MVMzEh6RwEUI8H5lb5H5bCeCRbzWH2q0BmnOEe+BtZF\n+bqC95QJxuEEt35p4tcUb2EI7ZVB8elyVsozSTa63IVqpfX+WEaZVP6g/+VQ\nkOsEQ64u1C4DE/DX3imnWT2BE14Q1ORtouRO5ryXft1os5Xk9iA1eNK4tTzu\n198Xhsxe/QYTXOLx/Bgk0vz2dMkkJgACKIx+VunEKIOXvwdK32mg8mwKiUBJ\nJ9zWO5pW2tP48JMEMDvozDP8Inq/uS+BIqw/s6SHWf5xiT2RoSELXg8XlwUP\nDvHjlEslKadXNu3CoaRjV8TZfhfHd63JKFTbLcMx/+C1DggfUBmYIq5ugjSx\nPo1U\r\n=RVRi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxE9C+O08PhxKKSLNk5fl2nf/5JWaZIH3FpERFaqqrTQIhANqJ/NUSas0KU5xOUfKUp5WSyvsb+QZ2ZJr06OnOZ3NW"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.23_1627751878266_0.10658270207804232"},"_hasShrinkwrap":false},"3.2.0-alpha.24":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.24","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.23","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"a9dda3d0f09f3be020bd98f8a4a228ce7bd34b8b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.24","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-VbAia2vMNWpu9yic25vhhXXvubu9zQeiuKMfjkkSZY9maT+h/0kTI/6LYbpHNUAf+z2V+lnhKJonxfex/q9MGQ==","shasum":"ff68252e606d9dd4683c220ff978bb69f9468afa","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.24.tgz","fileCount":679,"unpackedSize":27904482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBbRoCRA9TVsSAnZWagAAc+0P/1VXz6/Tr9G4TzjZEWtb\nC7k9C+qqrMYpfIsHs6Vjc1IZRPTBlB9D61m3qJ5wIncXkpHUqZ6q5TKw0KAX\nxdtqjLyOoJHtQ7wpfEBzpn7zHKubd6Pq5dio8INcUefCDEzno3u7VTm1TTMf\n7earzm84uxN65swYbirgoAQDrs/270+OLCCd/oY576ssSbETux/PitYv4hDj\nm7ui0+J5Dw8nLAhTOuu3QekbxTYa2MWESCkjOaGo1TPjpUf/7/i6xcvSPEq6\nogf0hYKDxDxcuyH0mfL4QvsCPWPj1wl5ZXNEgKHy3lXFuBdIzU3fcd29Cbkg\nhHxyejLpkHFsabpif7dwJ8yZLUimVwQM+JrMxh/lD3ClYOaaZr+tsm1lCdBO\nh7DYCYqxbn9D02z1b3hxaAVH0k4EVt6ILUA56mlYAvCi4QSUJInEpOG2D5tD\n65WJDljA1ShT1yhUs4vkXCVPu066Sxrxtbk4+QuC9GCqET7muCr0m25NlINa\nPQ3qkziex0XZNwTnXukYnFWoNZA/QsDzzOIT4mkXCLlm06IsNGNaVGW+wpSW\nzcig7Wg2FRmcr6PfTmkm/kHztjHoR8kcaVWZT836NTWhax7zYWnSIAJNcRpL\n0NCfhVq0E64lD1WvaFDpHzH4e+3emOpaX9DUeqeVb02E7lE+zRgewq0cbSfz\n5ubg\r\n=U18C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkSbdI/yTfLHuUXUAnmDeTxJWMfvnn7QDGLqzuHMgolAiEAoNiYJXZAMhoIGCGTnrBkSy7f7JAc6H+VnlXjU/00hxg="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.24_1627763816596_0.3296190202550464"},"_hasShrinkwrap":false},"3.2.0-alpha.25":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.25","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.25","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"e1b7a240068d012bea44c2ffcfa29c835df337b1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.25","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-98ynjorGylL92T7QHeZ9rIyglJp0fVon4+Ac7FUPzwOByNlWERMc1nt+i8TS0bN5PdOvA+d7NbB64UviCBpcBA==","shasum":"cac169f1169c2b139f035a4f101a1dabb0222453","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.25.tgz","fileCount":679,"unpackedSize":27904529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhB5qdCRA9TVsSAnZWagAAquwQAKEx+w6gI1GQGg5xdkB8\ndFnnvFw0hZxMBxqws9s0kZUcCTNc/Ri+9ZAw6vhc2QXkD5Aaz6x/ko8Lhs9g\nytZgMifUyJxqPPxO6HMtDPQs8GRH4pJVvk1yvZyHe+qV3r/JhzHgTheBKvRv\nBtyJm4RyiYupPS8wy/xZd7hr1JTgeF0N5YKEK6FsgA1UJFjbK9gaqvyn6QOC\nxbKuZ++DWk9axNe9ugbXpd2l/CtPdgnMdlDNbZSej44yitcCuubfnQIktYW0\nON3J60ZJBDGSwg1tbGYErpZaGuxYXpxvktWefeD4FePWn4V1AkKUoaPMWhDF\n/lmtkF7fHZ3o77IgVx2ehH8nhdI/IWjd98AVUFkYKwIuIyNdjJByLi0p9SOB\n3TgHcH6iHPm9RPSDka/L29ec7YPVQRAiS81NAfnkvY+iT+bol2RCVbJrH2Q2\nggrP25UYpg6GbTH3xjxGxKsxC8oBpLk0ys3BRiRRY8GmaoNzzIKrIfkoD0M7\ndsRXw4Pq498pDIZZKinFm5VsfslF0bJg8nHqRiprW/eGIvn6tXVAJCJQGv6j\n/EerzXfAzlytoGDHFkJHicjTjgekM7Eu5Y46NukgxGOvlV/pvMXNJNmMeE59\nutmRj141ObH6HaJ11M/l8Thx2nGBrnYTCRYpeGRiX1lhrSxGDXkJ0No3/TFd\nODFs\r\n=fynZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2IpiY4WXmC0qfMvkgImozZ1WUU8ghmWlv5ajbvjYA5AiAHg4OQznnq3WuVxMZCYdQN1E3SYVM2UG1VkvzDYTSTrQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.25_1627888285353_0.696517311896099"},"_hasShrinkwrap":false},"3.2.0-alpha.26":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.26","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.25","@vercel/nft":"^0.13.1","execa":"^5.0.1","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","klaw":"^3.0.0","node-fetch":"^2.6.1","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"a218bda66554d8f96735473e17673e9719e40fb0","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.26","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-C5ajwBnCe5R8SpuYw0hXLi5NWvuviuqI/wiFGnDyzzmH43YhY9QkZHo02efT35HnRh8eSR2pxq7RlNgB41W6NA==","shasum":"465eed57eebff8252f30ba21dccbf94461af3495","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.26.tgz","fileCount":679,"unpackedSize":27904735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCC7UCRA9TVsSAnZWagAAO6wP/0I8d5k65VQWNKAGQPdF\n3nVYO7f1nCQFW293Aur7HAijCDX5sheRNCKEflt9i+9NtTWbqf0apITFPmDS\nAocqzdpb2GBzoqsPH+ZlexqDFe9bRUpGxr+xhln1IlEz/prCQiUKiKa0G1eH\n2C/decLnE+UFWdLSuvxDoSTQi0ZQteuN42f0xoMQBPfE6Rv3MW4QcfK03xhs\nLulnhuk7vB+yX2+ZN3YEOTfFetLP24bp3eKWgW5QzRlpW+/DMKuSZ8/AxrGX\nS/HEg3V2R/JeUacbFJcoku+OFD1AEStYBksypeQ/TTXds5mFrtrqXtnWYIxH\ncSfFM7DvDH8BOq/A8TzLm+npliti6gUE9iwaeIJI+OG4umqgY9VDhEqysFbT\nf9SEhXW7JhnptkAgSqVSoVmHyOnTMhsjTc8KXnlpSmQ5Xy9t0F8z2TlQ2e5b\nlunc8NMVHSdSB/9uWqihHzUrgCRrE3pSoUIQkl3WZUSZ0nFfwQEgzbszCXhL\nazngqCODr0BuqpObvI/nddZhHLx6jNd6Nw1CQdqFvLOCe0xBSAauCM4FGeCx\nR6DlXFl1r9upMl8KIzVw7dWF/NXbHjeBUuMTXM5wjvT4Dl0laWwupC+4Mnm3\nIAM1T+3Gzx3u5doOTDkTcAbVqU+iu0E87wepprrZtDnnNIPfGietxEg5fZwy\ne8+2\r\n=aXdy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICs1H48O8VFP4uyb6GeeBCm7RIRduST3fxntCVC2DZSHAiAiMjvOqtEG1qaYtT6BALoRLuH/3JpC228mxGeNGDUjSQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.26_1627926227825_0.09933137528687164"},"_hasShrinkwrap":false},"3.2.0-alpha.27":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0-alpha.27","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.0-alpha.25","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"6eedefee28418f626b145b4d6ff8fefa1a473fba","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.0-alpha.27","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-f5LUVYut8HSh2Fg8dLTOPN/sia3MTdPWjEGvd2760cwl5buQ/U9pRNC72qkGRNkH2yAUolDLlmGDusjehcOp7Q==","shasum":"a8073eae3ba2ad52ff203e58c1ee07c67ee86d7e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0-alpha.27.tgz","fileCount":677,"unpackedSize":27904553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCF0MCRA9TVsSAnZWagAA4o8QAIljQJ9YKGUCSv5q2QF7\n/wz2nfTb2tD5AXq5fD21DQU4kDjVAbFkLEaLJUg5Yo1Y+dmCtygYhlWxCVR5\n3QXAmaZMJPdI/juW5yomAqOZlANix17RMF7txoBzVza2j1oVzWohwmdRw/Ih\n5QU8dmlUwEd2nUP7bu0kaBHxLjfRa/ngV47MzvdtRnPYazN8A1eS9iKmPbNq\nGvgeigE8ixvk90Vzm7yzOwMYzQiIcxIa0e7zarL3YEX1WCJqsUG8FIufrlW1\n7EpGnZcXvKrPcRvxvl10YfaW7WdshlYkX0U9iFo67UrghdQqeyCDat/FKwVe\nhzuBEJQ/5Uwd+UU9u5eBqjW0lw25Zv2Fd4DZb8JJY2dtqW66DILyobVpaACv\n5B9yNNciOoz2hDaYU1GknVLKauvkMeYPt4J4IWrWQX1qNYPA+DtFqSMGLncM\nn5h9mZ1NYUpmmIwfkbRN/RQ77tKbe0tjzcbBWA6NhaARdYI1gdy2jy03NAwU\n+z+x+tMqa/MEXHFhhxp6YtxEeKkNgHhaWe1QoYdTWJyyN7h6kI9WDEjavh6A\noGUgVr+5A+yNZTNC3ERFEH0ilCcDpyKh0gQam32AmV34qofngiLOAO2BQFiD\nFJCq/9TniMzNtCopeqhazIQcPTbEbubVav/NYaWAKMf6yI3Rq/0P6maCNXKO\nvyta\r\n=ahma\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbpES6+0uS3nPFv/xyx+sMU/M7Kxwy5I6QsPTt15lS/AiAGmbwOONKViaNdNAcj/nTA+NxzJ9TZDjL9ESAPfjRWGw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0-alpha.27_1627938059811_0.46859774587183556"},"_hasShrinkwrap":false},"3.2.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.3","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"^3.2.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"e9663ce4e358eaf55bb63316ba153c9592d9c3c5","_id":"@sls-next/lambda-at-edge@3.2.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-UKDN1WlzBI8uDObfgFnPYfOhvUR3O4eWQ07jRsvmGYhdAyFXZA4gSPAdJ+1+6q0afDRpFbYMqGSuHeFrygFGyg==","shasum":"7e75bf2e3e4482994eac9b511065a6dd1d8893ce","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.0.tgz","fileCount":677,"unpackedSize":27904536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCNvMCRA9TVsSAnZWagAAL6wQAIUPQvFdSRlKG220xCCv\niahA6kJW82E+eloZD1wXdC5VvLiDwXF3cVEJBBwLaXyCuzHraboULWf207vc\n32EphXCNFdV6K1OQFU47IbKbGDc9fGbA2Li9ffzfbLbE1j16zcj9FcZJ/Viv\n1jbQhyWitbQnYwhjdSJo6Y/qS8M4lSH7/89pIKXcALMXNgG5q4IQOfxvKj7F\nbnRFPUw/mg8fWFepfZdXYFuERugrt41JvpEinCxq/gMO55/gMVq/uDi9dzzG\no6j/e/u5X5g4G2kZGEIbRNEbOv7J0hBUO9GUO+XFTBEQx+8cEzHCwjyxg+QP\nwH4WXhz7bqCNf49/7PYTPkeTuPXWrf/oyx8hyeKu0T6dgthxwTbiKy50yply\nnhF1qQsy8Lrh9d2zskxno6D8dsxoSqLgmmmw5ndJAZbkNBp089hWaFt+aDUM\nGAfNkgRIPf7Ph0/vjpTCebMJxoKUMQOi30zH8fUpz+vJ55wC12Z8cz+YP6GD\nsH2rNnr5I3nfgrWU2pT3qGd9mbKkNI4ZLLaRHF5iuG7WuChB1n1xPxeEh15q\nopHwnG0yij6xFnHNqAgTojiUShGDWbJIAaUVxVns6QLMLKgSBqgBl7GfB1Gj\nIRdV1i7Iwi1DE6Fbb7SlckZaKeSaTLwFHQ6GfuZhnUktoWXcUeTFoaqUhGBi\nJ9fg\r\n=DUWx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxBR8yLT/rtSTcvdCQ9KCtGRgyn+WQkoP7J2XRX5qeaAiAzF3ef9Y+3JA6u12kh4Qm2o1laQUbXos8ikM7lCBwj7g=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.0_1627970508322_0.9113512080826773"},"_hasShrinkwrap":false},"3.2.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.2.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.57","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.0.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.46.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.0.0","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.19.0","@aws-sdk/client-sqs":"^3.19.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.1-alpha.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"aa8d742ac6d533a90e520adea810374cd69c0dfe","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.2.1-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-5xM/zkrH6ABy/4+y5G2BrJRfQG19RqU51W7eMCTmf6EoSfH08ZrQ8JV3dIMbzAKsmpX+3PEfc1fSDKpJb+7IDQ==","shasum":"985334cf35ef789f3db95aab33d85c16759944d6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.2.1-alpha.0.tgz","fileCount":677,"unpackedSize":27905947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCsEhCRA9TVsSAnZWagAAqtgP/RRv2EoIkC6YAKpkysen\ncKzZQGFQ2cxUVjQLl/oGc04tDS/KWCyc8N49LflN4RwEOLm0JfJ5x6AJ/q0y\nMTZ4vbescpAYPu1DDqWfXaWuqs1Doxx8PZWEkHJL+GHHQGDrJ3wLGP5R9kzl\npaS6iSbvhbEjvf3rglqaUrF/VA714ulU91uICxtU8nxQNF+9NPuwIiezlkob\n6halVw0qpcmNkGEijwq9o0HSQcWRYizfj3MH0DD+zEwzYzpgfjSwu0H+UP2g\n2G4vQ8xktDbAgdnGm/n2PanlQhh2YSJjPpjBcJh+p+f19a8yfBNuw+z40UHA\nDppp3eDvYRCjcUG87e/a8+xSdIhY79OUfxtSXXbdEu7wcScwMxQeAF+u+sKw\nSV49FUcJAgY2/n5i8+atdHqx68C/l6MJDllif6ed0Mj6o0zM++MuVzqp+aJ6\nFKY2XOqT/pfce1oGCCarV6u95aBtEVp0mKYgc3OwnOVzkOOIsY34SNYiQrO3\ndKUnApOuiq+tAH1Shz9ey+sKzQSYeNzxEtfdtb3aUSjMF/hTBSfwq9TwSCs5\n61iBkc8VsjQt+XGZDMBX+ikjfz68iLFEBW4c7GMyUk4h6aL6rBW3mCfl6O6o\npFvoWktIoL2UXYuLi9JSw6YLZU9gF2fEiDMaTeTEQ2ui0bwGblO0vOAwbtCw\ncjLi\r\n=QuVP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCleuM+g5AxdxUyyEmM3tze7E3k3MWmfOwKsHa648kmmgIhAPRUISlOfVzUlQmPzDA8ufS6IfN85SvfbP4nqKL/L8Ss"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.2.1-alpha.0_1628094753394_0.2893214648251936"},"_hasShrinkwrap":false},"3.3.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.82","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.6.2","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.2","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.26.0","@aws-sdk/client-sqs":"^3.26.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.2.1-alpha.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"494121a0ebac4b8d6142036515a7758b1aae4efa","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-rQ3S0mpiNKaly9we5aBV+/z3ZPEdJbaV7lxhO8A3vsSvrnYN+YceVMSH44ZSVxSiAOadB1zh+/w/2qKbQbnb/Q==","shasum":"a1e4096a38f375a4cf5894ec0f1a010e4af30840","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.0.tgz","fileCount":677,"unpackedSize":27956206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHgF4CRA9TVsSAnZWagAAXOsP/jPnXwmjQ19inzM8gRVc\nHru7RIf0D3FgVWKQLtIaLau8OlKTojfz11sj2+wOTV0Zl5pGK09qGzDJP7Rg\nmsvU6mP6ZCPO+8V1/pGhKgqAmXd2uYRXENlLYl5Wit2mZiegPVXAqzyZm65i\naIzRyMo3pu2nldnAd2PfjupB/6KUXKeiM0ejJYc4rtCa/FWRthdvw5FL4Lcf\nFUgdpx+CTiRH/vDIAxoDeeXE99p4425DbgoVwqveWdt4IAslOO9JBlhaysa3\nv/pyyYF1C/Sv0nEXikxjrq3AWiUDNRP0YTsQ5V1VAD9apFgEu1ZRjgbNAHFY\nG0vELJp4TYyngvXq5/Lkfarta3OW3hmq2crHGyCgGftlP3wJl251zfX4NwRC\nxXepdgb1WlHbERsClnKd6KukVo5xEFLUuzWCVeUIo/FRVQzB5L5PjCiO4IPZ\nHhqdMkjBLN2tNi71qvLhSEVstBKWAPMDBOI4PmeZR8XkVqwpn8W4AwJdRZFl\nuG81kYciADak8dt4RPe8dD7P/nG5sjZjBl8MySEjSqf7pc+qX2lySzO2BIoF\n1yVzHfXFlBsYp72TyynAQgQnPAFjkHykhvyh1/3W8ei4nv66EfTd2Z+dvbTC\ni91tD49bsGo/hlqkFo7Bsnf+qoqxk+jAWaQOYzbTFhr2VIS1CuGHzpJ6H4rW\nCkpc\r\n=Drx5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7026Gun5kLMKcqGnExIdTt+leWj+S32b+ICrxRp9DQAiAMMwfGi9WYJxjiKED1i2mYAuoYNcIkceEumCkMSwBkBg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.0_1629356408422_0.03589437996091416"},"_hasShrinkwrap":false},"3.3.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.82","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.6.2","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.2","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.27.0","@aws-sdk/client-sqs":"^3.27.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0-alpha.1","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"515c0a047a623889d25d2c0627e09cec29a0a822","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-aq6Fdynquau4awV27bQ0IdhGFD8uJDkho8sHlepiERRD78gK6f2AzOTX47eKWL+xXlv1G7f9ZXMtE2RipWS0jQ==","shasum":"99ed34ccffba99d4e0003a5577aedb11c25c2203","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.1.tgz","fileCount":677,"unpackedSize":28112915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIJACCRA9TVsSAnZWagAALFAQAJWLVSs+yd/wPORgHCTp\nGdqiLneC4N8VrzfD5zpvzEvgvt0OX+BoXFM3qFjNGZT0Dt19hAnPRSvpZo8F\nWnaOofOjSYv7MHVM3YVt+7LNzqSCHXilbCbqkrLQcVdJHVaK0Dp9cN8aFJMG\n9ccSE+1BngfUr2Wjtjo4UdMiN201/0Gdf175LU/yn+DBJZImN8H737XB5hE/\nF9YSHIapgVWoGtZs4Sjj8wY+WJ1gKkVNiviyt+R9LIHxvdMQUOeLJwEp+8bH\nPbhn+sAIbPDujx92KyKDLmxGXcY45BmlWa5EU+UfMEFPo6rrwH2OfolygX1f\n/DZWSpYunEERgiysO0eeQZKTpYXIkdrGy5KR5tHIFlNzsuGw+vU3IOq28qMp\nSAH/seQFFtkNNNQCGYyuxuhGrlUi/Zid/feQ3ZJOVAodvPuUZxX1sTtXysVY\njqXZ6rNkw6i+OJc7S6gE7uewq3lGWVVmSyYXDLwmnxm9gelpIRw/ckQ5MGyf\nIUsCuuf0GdVgK48e0n4LvmiT6CGcWFDL2CnYbfvvjBo42ZHG7fVnAmT+T/Rc\ntRwmJIdxqAWuYfJfmIL9+bonIcXSPiXf+eJgJFYjLDzzy97+3+7zOqDS6Mbh\nwLQK02wwKeNFOsgfpOyH7siqJiMg5ZsEGUBx/KUd0B6qXBEhaMuXUR05aYGo\nrzjo\r\n=Pk6R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzqPMttaTRN1F5AzqGCJzhkH1eG9Vr31XPwtvHoiXKDwIhAKi0Ck+V1T/Xe+RZDWVd6JN0jiFm5ewSvNtqCfOZIdSC"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.1_1629523969786_0.3561013429087909"},"_hasShrinkwrap":false},"3.3.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.27.0","@aws-sdk/client-sqs":"^3.27.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0-alpha.3","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"60192a3272dcd968a14d5e4f71af874deb9750bd","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-N9QFWVKknuaMKFtBSw5XgsZJxuXRUzWamkm1WztfTrtyLThse3p1f4uyab/yN1FreVdPWNxjBiTx4TzGHSBs0A==","shasum":"2e6d15f27c558f1ba49938d9f89f9e3e9e0e88aa","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.3.tgz","fileCount":677,"unpackedSize":27982642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJnO6CRA9TVsSAnZWagAATdcQAIgWYDddd57IuVaGaJTK\nDYlk9CsiYujSwi2hCGgEJRZMlNsApECiYIkIqkH7hwbLlY3x4ki6vrHigM4j\nlONZsuuIfY+gEOcJ9xd2EIOe9VNHHhDi9STd7AkMdbq99tlJoflTMyUQksdq\nbMyD6aJ4IBcvb0QmmcAdn+WjpsFX+P8H7E3IGDyEjLbArwYsndoXqv01S4/9\nylFfdFm4OWyJ5Oyrihyab9McFOBk0v1VoSBj5TsOLFDn5aOg926t1KyvRK27\n0q9zGOEye2LYp5oZlMo3C0HQNTYdRv1kOMxwMKqieNWhMcCDulnoFC/gNLf0\nszTRvXHeIbSiwR+9CVTorkBHsKaxPDgcMcf+xj7L+edrRfz2MlaJH0pQPu+e\nGxSn91v0wn9+A0LlYj5vOUp5Fj3RQJj8fOci8acTZ3VkjZdpNFehRbJ4P5ED\ne8Xt8//e/op5GzMTZxrxDZK+tzGR+gNacsGrgB3Iwlxtj76LLrXCBxguTslS\n0MrVpONCQuXWIiqUumzQXiHW5F2TSxfOXeeIW7z+BE208djz8IxTHvoHJf28\ncFdUrOtSXu7NBeh6v5wb6zvA5HHi8FIXHctN5QffGV+8e8slupLIFqDTIe6E\nwU4ssjVy5w1i/xe5nGz0E5i29RTNq/lazG+f4k0MuP1XKm28+Z1g/rP/3Lan\nzPrN\r\n=w6By\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFA0QfHwQDUX085r1KxwVQAI7yyQt94t75SyYp0D42XiAiB1p9WdNZ/h/LzQSK+oEX5KjBfvDDnTOXJZnr7PZJTOaA=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.3_1629909946039_0.8443513643715501"},"_hasShrinkwrap":false},"3.3.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.2","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.27.0","@aws-sdk/client-sqs":"^3.27.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0-alpha.3","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"c3789b486f12c5bdfa6d01faa025b7c92ab63009","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-pxBiATrcdhJ24lCnhpQrfgbXPpAqVGAMEn/QgFNx0oCW+2jHmS+5yN9d5dNcLP5EDElPUNy5C8LUYwok432jKw==","shasum":"58b910724d0f0fecc3e3ff9ea03307f90a04a213","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.4.tgz","fileCount":677,"unpackedSize":27983483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ/pbCRA9TVsSAnZWagAAqLAP/0Ls31qZ0Ana5Z1oaHAz\n8gy1GUgazN3ZFKZnav2dK2qqF+qkrdvqJ37dRLTefsnOpU0otS9yHz4j1suh\nieXIGHqNwOxkNhyHqNt4nuJHc5+gxwC9W36AA4t+dNhvTlllFKLzrZ3MTOEh\nGhAh6IsY2mYF5D68d1kMSudJQoqvzb6Xbuon21f4tPLB4JTbGwl2YnOlat8Y\nPVTFxRYfTrjrOKMXFR+DsVNo66t8SJOyLeKeK1IcXh9clV0rbwDyNKzOc66f\nS7hmgaplnyFfcVhUjWLj9LHcf+lLonewMBrvNLdq1lnv4uwTk1ziSmpuUDK+\n9g6RFKQ6tvLYPRbQZwh79gvNxAM7GtvrQQtTtU9/XBlQ2gmSgfOcS80iLPlA\noh9P9uykZ72MmJjFmzPIvnlj9nsdtCJe/P+UkfkJ19tALHecrclrlCMeKrOx\n32YQc6Ioav1veOnwCMo0fRGoiJsRmEDVk807dk9KNgyxW9POV+OYqWVviVeo\nzTVQ6gyydmuJCffSFwI2u61R7j0rXkJyb6UYNrKeLUvCYRkqwGFaR9GLhn67\nRJdHOL+E1G7Mv6cW6YLfhcxUNrSF8nglwWUXxAZYxC3Msvg1JV2mItC5uZrn\ntxluskFWA7GU8kzCu9crcCAGH5OQ3HqfISWuh7GzKVb4xYFFJ7pSB43w9WTo\nlqC+\r\n=9BUD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAgdG+N3s+m7WvRV/vw7gK/MFOcq0GhoxQGCMNT8pgPwIgFRsKb890FNGBfqJ/fQ7MWF3PLUr1z9Xtb8iRRzVfEmk="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.4_1630009947343_0.825155498363833"},"_hasShrinkwrap":false},"3.3.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.2","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.27.0","@aws-sdk/client-sqs":"^3.27.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0-alpha.5","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"214f8a2c3ff00c6b721e262c33f880d15841d8ef","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-FUB1XORHeKG9+QBpq9MLV8OIVb4B5ADfgLotutRlU0azdO5FhaPJUHJmoYIdZpwhYKXG5jKufcJ5noVpU5g7Mw==","shasum":"f4c005d7e7ce216fd472c7521eaae494749084d7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.5.tgz","fileCount":679,"unpackedSize":28021961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKJOdCRA9TVsSAnZWagAAJMIP/jbeq8JEf648gvcFDoU4\nyPWcLN3aZlyFwPbbD2uK2MM6D5rfQT/j1EWZ+e7+NZdaYsskf5RSWTfLI/6S\n9zWEnJTbotKLfJc2rfdTJhzfEFa4Va/phtptRfZjd+0DBzzm2RfSBd+vhB+5\nVtJvqCJQnGccbOhlLozArNoDegrxnl6LzZdDbYaLLRpvUNIeCe1Bp2BY00DJ\nYbtQd7mANEVEpgi6Jc4cBIsEQbn9sztogjkmRz0T0oWY3s/XvdxYNh9/cM00\nN53poSt77S9DSkzeeH3nP1/gXSpnCousIbpPcW4clvX6CpaVPWKP42ii3erH\nQ4AIgDZi8lrGvEZgJi9L6tHDW4axgWjYvvvHpyVysNPdOl3w3jDtdA2v/fhp\nKUeac2NXq36XtAuDAAQk6YJm/6GhOGSp21LHtA1S1m2zOKHwWAgaUjDegfJt\nVaaHfpo1CKpUWDcGA76zdoEP/w1btidCPVuqjFFEX1lasr0yNu8M278kqJSd\nxbkNpJQ5vCNt+Ro+z6Fx7q1Z1w+C1GViGA981d/JbyGv+Qo6yC3vBh1XKNzR\nwMp91QWt04aqR3uXspvjCe7BAHp6L20WvFro7fME+sbeu4ac1jnWbn1nntcJ\ns4h8wgPCqGB2dVrVNqNYamPmGWqjaEe4KX53EVrs9UDn/VsTxRhXH7dkB45T\nxXZg\r\n=20mu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5Y4W3zawWJw+SNujLzpFZsrBGJnkGscA4UPST7hLGcQIhAOipzaLn5g4q8shKw8WcN36sVP7dNEYPks4ho14MG47Z"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.5_1630049181235_0.04929498260370635"},"_hasShrinkwrap":false},"3.3.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.8","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.19","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.28.0","@aws-sdk/client-sqs":"^3.28.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0-alpha.6","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"508fb0d26dbc66707cefc64f7f429cdb93403781","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-pTQIAY7di13RPlAjMmDI2EfbOO0KbJH2C2d6aSKXI3sy7VzhKF41G9UdfOkga/ZFUL38cLH/4Rd6VcZ0Ccv2pw==","shasum":"1c1ceff1f46457fefed23e956e9b47e509035582","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0-alpha.6.tgz","fileCount":679,"unpackedSize":28083863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLpKlCRA9TVsSAnZWagAAIg8P/RzNLjfscQjr9lhNkoZx\n8xWE3Hn0I5a94y5D5J/rCzMsRhnq3iDf2ClNvnSZrBm6WK1GYHpv+gpQUoqw\nH7gaiyRgKfzMBTcMvDmsEfrXSyPHODKELNPGx1/qmMA7Ocu/dejIykDbhGX5\nhe/UI8+OjjsFJ/SIRvI6ZY+mkRHXn/wOA6m87btLibelLoLpwpxprYE2+vzG\npbgcKdgfWipPw1CoCJ+ANkpOg816aWmrGOJ7iEDAWUUXdvoAivhP/sqfwmNY\njEiXIWCr/w3lnwkTGA5hJ739xll2pCdP7CFaA6TgYLZ1o3iTln6NcYtni20o\nepeAJKE1LxaNPCfQW77rnRD55uoFnIF7dtzlwxvCNW/7lOfhY/few8kDN94X\nnNopH1xlDUBJEU5OizK3Jth9H7jwASB87RQMYRTzl0O3wF5gaIS9L4tQE+x8\n7UP9S3xIagn0bQ+V5HCZjOMg2QwnsXv7N5QQFpsDeUxRMqKleyEdUX78Ke6i\nfv0hrG0Av4Bh2elu/S9mlWIwp7axCUJk7CZpFzXVajd0BujynP2WpRdyqCIn\nFr4wcXJB2byc58t/hMeQ6eNw7SQ0ZKN+RyrTcEZ2He91reBp5sbINURIHFXP\nLM00thjpOJOXZN/ZuXn04JqnujKI42auEgZ/YWTxc9D0NhbXVWBlq9pLMj6S\n6f+d\r\n=N86U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMITjIRsvVi8eqEfbRhDtxZvTqoGiLghGH8SpDxq1IJAiAr6Jjt7PbK8Z/wJW8ukYFLYthnlnDDcEkSypdbSt/63A=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0-alpha.6_1630442148857_0.24933959505195968"},"_hasShrinkwrap":false},"3.3.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.8","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.19","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.28.0","@aws-sdk/client-sqs":"^3.28.0","@hapi/accept":"^5.0.2","@sls-next/core":"^3.3.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"145c16d9e163aca7b5f6a753f60404363c842b8f","_id":"@sls-next/lambda-at-edge@3.3.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-yN5MdNVeCWnRfS9a3vzg85Jg18PV5AABXS94d5V4jnV72EBGBOmxM4nOTy0XQpNEVLiaG7A1b7/3aWGiRWZmaQ==","shasum":"5519b9fb0f91a7733c47901a6f8ae120a449baca","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.0.tgz","fileCount":679,"unpackedSize":28083848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLsdBCRA9TVsSAnZWagAAfw0QAJ+XN0wqrpaELlkm8DFb\nQfsTGkKTlyH+a09LxRGhUjCy4dI15A89EVzcb1ns+tiYwoD8Xy8n6Vw0VKVF\nCGUZcwX93Ri97pqgucnASNMrKtowkaVfSL/oQywHKUaeeyCMcb2Cnp2Q4Sf+\nrqH6pjHQ+caHmsayuL0WzyeXJ3FJadVH7PNULqQnlLH6pXfEGN0ZwIE04fwU\nhmE18c0Eg270wVv8wVpqkeR6rSBqj0MEN6IBOEWYsRefmMuahnc79/ITuwt9\nVclcmEPL3tpe0wzBDMv9tjhCGjoIXXm6BbYJuQu3gkDyeUcAexq6T3QsW0g8\nrdXpJXxOKN7Jx62xIOA68m7hQG3DrRwlYYpx1qzjNf9GIKROdj5Ik/L5wzEZ\nlJcrWHZxqCorBZCop03XX964zpIEnGu7yWXTPV2kl9LJ2rrkb0QLmPRUmeDR\nTE3pQGJFvlDgGUcRUsoo52hjmMEXurUP/EBsJprWzh356Hvl2SoapqCC4/yi\nMi8uRhrZEI0nC6mCCeIxSCvrcH2Hxri9YiEWfpZ9IO4ApVHkeLaDKXpNIu7N\nmzGYl5GCV+FJhxmnt9jjKM5hiz+yfUx5hXu2ueR76knm4IGRi5pXHBodc7kj\nEdZh7ti/mEMAqBIYsWepwKh93UjDm+71Sxt6kJKA++xYrR/wr/1HuL/oiLjE\nBtUZ\r\n=O4V9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7Vvu0OzIitp12OcUcj6MIeZ+nMPhmnS0/VQGA5jOVBgIhAPRwfTrKiN3qdTM8aA1RkWM6VvPGP9iSlApPEL9VNwMX"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.0_1630455616571_0.4575372052846922"},"_hasShrinkwrap":false},"3.3.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.10","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.19","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.28.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.28.0","@aws-sdk/client-sqs":"^3.28.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"73597d7b0817d123d834f2c61d0adeacba18840c","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.1-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-xxCsKWwqv34My4aKHIZmC4J4nWodaM4MNBlJbeMOwLuOinh9jlh9FZt3SCdD3nXaKgUK+1pIEgR9GkhINZFtlQ==","shasum":"4cca40ea0eca57ab6224eb3992416e7bc36d817e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.1-alpha.0.tgz","fileCount":679,"unpackedSize":28036093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMG7PCRA9TVsSAnZWagAAAKwP/jOzHgKK0eG4njLPIVu5\n4pGk8SqRG+w38SsQuDRSA1HcskRMfe2bx2Q0yNvxmO3Ok/s1xaFADq2MXUpg\n4+bP0tf2uvyIleynYTuYzPtS6L9M4pzQ2WLnkUQfmdkbYeE5Rtz3X8R81oYC\nYxm7PL0iQk/lcKJ4qHCz0hpRs9ONa8M3HsawzVyaa6LfFRrXp/Hhk2w3WfF5\nK/xrc9jJAEPEgdA3gfGC1rNj4OnblqP98qjRr8/DqMt587GNMWrUSm8Ce6Bx\n25/0UeecWDtW1Ls42em1qmbiMRE2I5qWgIehI1u6FhRfrKoqH7mvrqCU0Pcp\nF5yMX0PHki9EuxElhv3R6+XxSVfzyIZ7AtqFYWyA70/gBxMFIrbmr6Flv5ZV\nc3GiWqF+9K4eRKWykyqNGzKQDc6FaheVdVsebHes1byBs+cwOsRxF8/W+7zo\nebSfPaLVaIArlckdTcyPXzYEtpo3dHrosxhL3FuOPvSqvH3aY01N4rhtm+22\neyEi30v+PLmgCihy857ikWqdB581unj+4JBWUusy5OlJruo+buq2pvDAsUMI\nR4ds/MjQsuzlhDaaGKj0PJsMnI/gPyY33rMum8eqWg51FHdxdjeRiTPalnx9\n6asCUlF7y1S+kCfL/aTYbPIRNdMEfNz+bw4MYrkfObLz7L35rrLgwH+l9ynq\nm/xT\r\n=5Af3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAo4eQAHMemotxSo/6CSgf6cc/UmErnzTnVZh5m9tekQIgJscXLA23QV6Bc3ErRu1w9DxD3AiRH2D1go58U17gfw0="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.1-alpha.0_1630564046778_0.9780109150703258"},"_hasShrinkwrap":false},"3.3.1-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.3.1-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.10","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.19","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.28.6","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.2.4"},"dependencies":{"@aws-sdk/client-s3":"^3.28.0","@aws-sdk/client-sqs":"^3.28.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.3.1-alpha.1","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"f9d6d173bb2f6ef542a175332528e62d0aaa3e40","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.3.1-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-wATK36k6nLqnbmODH3OfLhtwnEMXeoov3mvReQe/DSLOfIzv2P/2oUY38n/HFzCl4cr/oKRULeMSBT+MsMLcVQ==","shasum":"9a93a4196178023a49a67ff4a58b644096726d4c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.3.1-alpha.1.tgz","fileCount":679,"unpackedSize":28036101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMIpxCRA9TVsSAnZWagAAb+wP/3JPG7R+2XPC/SoR33qQ\nPhxFTiyRy9OrA7/kin0xWmnrAiO5Qb9XuPbiFmaosXFQyr6Q0/v9bpATZZqf\nvMB3UZ331MTUp401v7WiDEDRCmRNNIFa4kbN5AjdaJZ+Rm3gtmQlyjYdGhzn\nH7PPgO6YLrQZQonH2mM6lWe4IK+32evLfq3pTsZtRqedcIiX0pbd0vgINEOH\nGS/lpUWhlpb5icUPRYRu1lZpTnzzJ7zgp+3qGGHJUtlVdOWLZfW36Ldwn1Aw\n/p7EyEnSx3SlKcVLLIKrJM+Fh775JxktKv3km4YlYwvyWCLbK6Gq95zNhsSj\n9p0eHCVxUTxuEfz/AcrlRuVtidogPK/Ij9t5ITi0NT2gS2KmiF+0m6lsvx2/\np0cMdJrZiwhzX8YjcEjRiN2MQkQbhxGhDpVxqu3b/h5Hv2zjZxX4Dz4hYr5y\nSe+9UbJZNb/ykKNBRvbCjVcHw3/s6eFWYbiMM6EWmsUHfRh2jufcMAkKsLFA\njxAAuyonREPrV1P9XUEhgZikwmdL6IZVw7rKu+sKKbqg/YWYRjT3d7Lc8715\nfB2bAaVTW2RYXn2hIN4NEIOO3uvaxJsMfWEJ3V//6vwDFnwJtRquYHFyV8wd\nOYQMbu6/K9+OTJJPGUsk9UDLjnWbCXyd6+WbIWUoQ23s68OITmQIv4u3AIrA\nl2pU\r\n=iSlg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCzPVOsiZakPT9trZohMlIkUebHStD6q9WG/hV6H/zuAiB8Yun8MLLumFOb3wj8fqzabSC/K7uhhH6Fkxq/XDkRng=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.3.1-alpha.1_1630571120939_0.822252552966904"},"_hasShrinkwrap":false},"3.4.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.10","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.19","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.28.6","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.2"},"dependencies":{"@aws-sdk/client-s3":"^3.29.0","@aws-sdk/client-sqs":"^3.29.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.0","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"8fd147e789f939a11df65530887c1587436bc36b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-WhV078GOAC2rJcwfdM6HRoq39tjE8bUX15NBuEct+elSZ09qvbut3JMeBK3tpOeT/Q4Z/ea561x52SYJdyoXlw==","shasum":"516c3451a4a473af0c28622954656a33182a1d9e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.0.tgz","fileCount":679,"unpackedSize":28491426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMnGJCRA9TVsSAnZWagAAoH0QAJ7OfFabeLhRZVP7/nVs\nBU0q/4kZCZJwFSawceqtFWbRL4gCt0YVhoVNFG7l51jnkqOyrOq8W1wc7Fv6\nR3hoY4gBo4SeVggw8HqeVw0lrddZmHa3Jz+HOZD6VgQYSByKGAh3Huu3dhYc\naFtKfD2H0d/oaDy5vI1Mpzx1VwCMXJYnm2YZ9QBJgjui3oDN4egJQwe3nCaU\nmbllLex3+ANntoxOqU3jh/3Z+ODR2i6UaWRZjSw0XL4RxIX9Atlq8iowGlyr\nFPVw3Hopx62XdTTY3fCk7q6avu/LmvsRAMrNg+6TdxUKibxSn7cFEfBWItnh\nWxRpUnB+biNO1FPQW07dhjO2G+6FMfMG0n3fvDcZF08tPpIP6W6DrAstq87w\n7N4uLg7S+wFalmFzu5dAxXh7EYtYoP3EUcuXSZLzKe5hqXsuPEsiHU80H8/A\nXlaK989PyegGpkD5mArx5J9HlS5jzjrX+nada/nePPJ8GwYNBy961uP6TP8p\nqBbNMifWGe2foorgQ1RkkWSo9qcvhx+BBpA9bHA4Qqi8T42Vw0QMO9F0BhUZ\nJs7V9wsrpuOfiyUZjzgG0burD9o0ttYi4E+samAqyIslaX/gw0zWvxdkYvSX\nl2CVB8ZRrBbkLZEjygAIX9+YVAuZPtC8LbXGIJ8QyEuW3yponmuGvEX5N5mV\nFOA5\r\n=lv0E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8EBACBx1H2arzVVbZfq/kyJMYWs9Vi17w/9yiVc+iRAiEAy6u0v5NqJFsi/AjleOmGJke74iJiiQ9osSFuiIZ7Q44="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.0_1630695816952_0.37282884084519363"},"_hasShrinkwrap":false},"3.4.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.7.13","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.20","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.0","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.2"},"dependencies":{"@aws-sdk/client-s3":"^3.30.0","@aws-sdk/client-sqs":"^3.30.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.1","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"92180b089a32c9b69d4c32c322b13d3287093d57","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-ZkTZ9XeY9oF/W9H5IA11LzkBcSTFe5RqlygPPutUVXrb3rRF0ARN1K5CCuc0bCsWxZiSgkjgOZO8q7NQ2fu7Gg==","shasum":"94a2da6d2a126b8b59dd549b414de91bfe6be586","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.1.tgz","fileCount":679,"unpackedSize":28051961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOT6YCRA9TVsSAnZWagAATKEP/0oYkpqKXadl3+f3DQTk\nSFc6yjRWkcmNs+SFTcpXjarnh3GK/5/L2Zs6FanuPfls4RHwsSFnhwZNRvFE\n/GedtHaRqeOj6HBGBqhuPGQIWjqiiwQm39ZW517vfM7DgkH2xfZXwytQvBZw\niKqi4EAJZ5QEUDiVowyECjsKmG4ns7xyQztHcEWmm8b88IwXF44ytp+oNYE1\nm3htSjWYF9vsVJGyd/FozGXmvlj4eNg5+IJoCZAxqIA3rivOPo8Ct5oMRw0i\nTXPl0BX8mcjvtBU2NuHt7PiRVBWxbM+LR16nzCaYd6RoI5mtcQ/wSlzTYRqv\nPpUJdtrMZi6OdNfxb40NadQ23UY+VO54jqIbVPHLHiEybOG6lD45Mb/bza6i\nz5EsWAbRbRrocVAFTsSJ1Bpit/exumczptvMGWbsSmrqqxDVJ+LcDpeztGy3\nmMhEmOYUwlsrByvAyzzUWQ3yVuY5cdDBGrHM+/6w+i24eGWxVJgKkbgqVbk6\nFt8LqT2mp69vnSUeEC/wzsSWq/gC5AiXowS+MaHLgshLArKvA+1KHQzn+Jnu\nEzUn1Za2SOa8WQOi+DvROFA6GLTWLSnk/MXstix1gbIJfVrTQ1c3uxOQHXyk\nVD/d3Cq4N52JNP8gR9kgz8YuBTmbGpHAda/CBZ5lSAeFVhfDRrOZdW3+5sN9\nBZjP\r\n=RVtx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXzvESzCSnQIukh8bC1W2jzthXExnioJxTqhd8sO8fyAiEAkG2twn3WEWANJyl7/eCJRQhoorCq+IB8drlYghrJZlE="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.1_1631141527853_0.9712401059504849"},"_hasShrinkwrap":false},"3.4.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.9.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.20","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.0","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.2"},"dependencies":{"@aws-sdk/client-s3":"^3.30.0","@aws-sdk/client-sqs":"^3.30.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.1","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"b25aa0e686091a0543f71225d1314b4e95feb2f7","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-Ga372lwpBLht0Y4SZzJud+1YS7S4PskGyoPzN9xIrmp8N95Jn3syXqWMTDOsdcWtFhD/xTA9aMQB/T/DQMT2xQ==","shasum":"ebc326225962f5bded550c57a2563244147e31dd","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.2.tgz","fileCount":679,"unpackedSize":28051960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhObA5CRA9TVsSAnZWagAAkWUP/A10BeLltCC1y/v3BTzq\nb2jh37I1m4b0Z7BB1Db2dBq0ZcIDNFFD6Gl8lPQeyQyjZq/8gSMb36k/85D4\n18IvyOIYO6IihnceCoqxGg4Q7CNzeORBHqTE51UCPle60kqDwcIlpKq1Wf6X\nNGQovxy4NkqBz/W4jaBDGDPd2SXJM6s1SFbs0cbVILESlgBW7uWq1ENjlIJ0\nJ9nRlnnkCyct+ZxRwqZsDSu2BT7BbpvWlkejmv4BX0GsmfMPbQUhWl3l31R+\ngbG33FJThR5WnhVFFhvLYXIiVvTodYgppIDUxfxb/W6WeKLCVkU6e46nvktw\nwFdJGJltCAAzbfpcDEQPICLOytNN+dtT8bhWFbIQj2p07l0b2CDuxeGbEZoU\njOQSasOo9l94JyZI+AmB5SZuMqVFFm7cGa12IPrxXPfUi457Eg4sA24TeKEF\n/8yfFGC1sxp5MVHK63Mn01MYg+I6oWjv1VyPLdwnMmrsHqL6ShHu18QOLkRG\n+f1meoiQrckgfeuEMQik+B1OUgBXsRtgF+dHc7Q3LOeRm28eI94ls7J0WCB4\nfcEWns2AQ4ev5AcHwgB+8/qf9NjEQohR4yZZUDuZ9vnrt8eWvNuD3g9M8CfM\nCVEV6Y9081+M0rNn2SqFsJD2f92zBL7RhpetGcGbB7NZyITH5pNowxkSM5/i\nSLlG\r\n=Z1NM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDULJsmLOqmAa8JVOhYl0Ef+gnBFJxOv3cVgQEapHX7MAiEAzkWfkO5Sfbp4YXkc1PaWsKtxM9ICNl9kTjrjarqhW0c="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.2_1631170616565_0.32348528151167644"},"_hasShrinkwrap":false},"3.4.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.9.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.20","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.31.0","@aws-sdk/client-sqs":"^3.31.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.6","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"915702622b2d9dcbf2750b7ccc1db7648839a2d1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-O8XjLGIzMOEzFDfNvmldegPUATRZzDIjEiM0FMR7wpvnwQY9cDvzrMQqeVi2+pTwrj6kl87tWwSwd3lLA0wSWw==","shasum":"8dcd1106d11a704cdd21e738a9eb2136bfd2330c","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.6.tgz","fileCount":679,"unpackedSize":28052682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP6t8CRA9TVsSAnZWagAAbWAP/3haxLXRUHThlIe0MlJl\n6VNvKQF+5ur4JA1KuRiWnQ1JfZSUnjFLaGvXO8xPSSvLLnqktxuM7J2u15vG\ngJT5piclsFpXjd0X0VTMnAxg8ROnPNl4KbRPCQTNHhJz777caDWTaEf8NQNU\n/7EQfa2y+5H0ua+OQF7J7CkZs29EGs9/JUshjoSnE5Q0RfR2J7mbM27OUBtG\nsWcvoI+5dFbmTYZQgr1wruGSwNtAdpwvUjaUe3AqiM+2S0tUqI16xDFFuI+t\nr2M0DZNQ849/NbZYGplAq1AqXm+0M8CsCT1J1S7ZkoLHLapIFpDelhMGTgxx\nRcAbL5BBFsyYTBPAAfrzn5l71UDByB3lBNuqNsnCDPxtEkn09v5pPfSR0R5Z\ncED7Cvva5nmVU23Q0LADKumzhOy3ec4EN41X7OcCE25Ra24NiL9HPZOhzdM5\nGOnO1TdU5rHR960pJ++ME8m8OJzRAuRjM1KPTi9O7/vCKcLRA3rKGTA6+1lZ\nFynOBbvnbnIMaK+q0hsMuEXaGan8fVjiIB59Gsb1+s92QWyv0rQ7awOtz/TH\n9BbqnvQoecprQtm3GtAffzuOYrdQVLyzG0afWroP32gdyO4PHxGQor6x/9hM\n4F0PhBA304drodJij8adEJyrI2hmjJlVSsfeoQvOCnmQA0lF0+Kl1GVsc1eJ\n5+zP\r\n=jeQ9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAm/tsggCSrTM21/Ngzj8iA/4W9SapOpgutezxJKc+mEAiEA9NqsXbIGKUoYlcN7nhtGR7yjb/5HTcP2xSz7bUcAfew="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.6_1631562619966_0.2169260886406259"},"_hasShrinkwrap":false},"3.4.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.9.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.20","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.31.0","@aws-sdk/client-sqs":"^3.31.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.6","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"5d6ff2edbf53c0a7e109499d54c7a652ac648dfc","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-9+L9MMtuMt0dr3ItGSkCUmy/PA84RGGgk+SPb2WXkt+lXGb2Z7RpNpr80pUfd27N9S27zeGqjPmnOrEH/VgByw==","shasum":"a18d08c08a90698b63ea9d908554242dd6bf7df0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.7.tgz","fileCount":679,"unpackedSize":28106928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQTxlCRA9TVsSAnZWagAA0fIP/09uxNudU0L2IXfAj6XU\nJ/FHhxTnc3lDydMxCUUf8jqgcxISg5FSM2mEoyJd7/dBpY+taOJiS65cNaDm\negHSbfhXl93fxgO/tlnP6b3j2hGPE0CWn5RArWC5TsTRJUTw0MZWC5zj8St9\nCcIIbeLfoVKVOPlrPJXRnQylBICBEMT8KzBLC7QAkofQdLwTdN3JdDNnVNuQ\n5SHxcRyBC5vwVvyfCMlC93/6ZKegu03cRb90MPhMqk9GFi2PgG6tC+AI/cW2\nLcNOcQ8MFTvWBorFsb58GtBEYnpNBGlYrh2p0V8FEq5tGH2l0VKpqfsNSx53\nH+n/8b4Y7FyPKyVyCrqiwT/ch3Iqnvr353TO2RQ6eQoTLvxgN1DeswJcehJr\n6IaFXMO+xs/WhG5if8hwiY22+YHbjXchUxYUtUyN0CkJpfihzsx16R20QudG\nh5hJ7fzuMXhnRmsl91wyloKlmpgNpD6AmXijerk7snWs2yH/mUR3cQZZDVHA\ncxd+AI4dirBb21KOfVomYOIs3QVqO9a6kz32HQ1vIR0AWOuLlPQxeE926ACy\n0e2waRMPej/1tXm568MF5hYjyCKgdC8EVq6RGl6jh/E9SIzD0hIehNr/OCO8\nJq6ehJPpQudebZiFsG1YoK9h955gWFZ14OkQ1aYD915oZkMl9+hPTHNwak6z\nO6vL\r\n=ghKo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuogRqYJnlwulU7QUnEugWlIbG3cebDBWdGK9Yuv5QEAiEApB6m/4fjPW1zr/8WpOHtMcGwqJr870Vh//KQkw3giRw="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.7_1631665253313_0.708693673563791"},"_hasShrinkwrap":false},"3.4.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.9.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.21","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.31.0","@aws-sdk/client-sqs":"^3.31.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.8","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"d506b8d30918f1cf29c813b03bdceddb2f7dfa77","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-geqNc2FHZuQBjjbTR/lzujw2azXqUD3fMDitEL3Q1jQsrPFWuHdVB+HoLYYB6phx29m7kPTTMhX9qRE+d5Rw3Q==","shasum":"cb58377124c7687fbea4a9480b743df172228153","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.8.tgz","fileCount":679,"unpackedSize":28102897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQjeCCRA9TVsSAnZWagAAAGkQAIjrzHaRV4j5obvQ4KRs\noAl8gHeqdO3ppa8zOT1x4Bd6hoLpksX5enU3Hw2lxnGVkW/01BWWS5Ks8SIC\nFp0DWwornsyJe7tC7RAN8iQvSB/tp/O5s1j/RonJucF2wKGVhCF/hAvPilYK\n2z1LmGnHov1l+PJeTAD4rkX4u4t+YT0bRqK6vnzAXcqlqjHdbjXmn1iCF386\njhu4VQuWgwkIc7GIDc3CqhmtzFEN9WqIv1ObkIWZLiGGC5kwZ8N911AMb7ki\n3X6MD6v7zJb+hgDc0miJifyas8ZDqEifWTgbhPIL0ihzH7C9jFeu7y5XcX0A\nbGXpzcEPELU6GvBbUlNhFODco23H9kLr3M2CRajMiV6FxjSq8vxxmzmJrM16\nv9ETf6gioQUWjt+s4ElILLN8/DUF1xemD56y7+n+2s7hV9fzR1rlTzxkcL5b\nn6nYpz284B2H+yripSiZotrAnQf5ZzhCUdKlsKn0rcsX63W/pv77amkqAW2L\nirzhcYb4mwMXB31FN94z5+pjOdrGiL7F1DZvYsrSkBKUXpxNOxaHLoNIZvFn\nGlkOv2nj50b4vk5IzHnJ31nMUVAt8yC+1fIUt/1ugeWUL946+M4/ttrgDu3o\nSHVCUZR2chc1xphT7BRHW1HnYpRmilKTBFdpnqV1Y0DAzGXyXsAA53E1CxSl\nXPc5\r\n=UvAT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5SfE5Mtgd1TZfh8r39phSAUNzolX4lDK4QGdcka8w9AiEA3oyAQ44/UciR0onDk6uZujwCLzNnQvsxZIb4VsY7rJA="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.8_1631729537829_0.8551900350203583"},"_hasShrinkwrap":false},"3.4.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.4","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.1","@types/klaw":"^3.0.1","@types/node":"^16.9.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.21","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.56.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.5","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.31.0","@aws-sdk/client-sqs":"^3.31.0","@hapi/accept":"^5.0.2","@sls-next/core":"^3.4.0-alpha.9","@vercel/nft":"^0.13.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"806923ab88c84f828a4d549badb8fa34dc02b130","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.9","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-AQMd8MkQWE3SGyzaOXllkv3b7oIhufT8YuDFTbwoOepRz9XsZpEvnzcqGKGbN3jgTFvzn6mx8UtEGD7WJdZWgA==","shasum":"944417f700aaec4d5bf2cd8fb8a38bd6c9c5e631","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.9.tgz","fileCount":681,"unpackedSize":28127411,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdoWk+qq7vKWyQgzcDRv/OpuAEIHNk9aOyCs1eI2cB3AiA3I6zwpa8m0OxY5RIaAYNACsYqsBLjI0e3pVri0XRFog=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.9_1631898999878_0.6708234583792771"},"_hasShrinkwrap":false},"3.4.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.7","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.9.6","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.24","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.33.0","@aws-sdk/client-sqs":"^3.33.0","@hapi/accept":"^5.0.2","@sls-next/core":"^3.4.0-alpha.10","@vercel/nft":"^0.14.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"9b06196fba18750c74f0f9586afae2bbf1c84fa1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.10","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-dJPVTSqViFaMjVkh+ktZCalI6WPFArBqO6+7loLFuXXdl2dTgu2l+yH5HiDP9xUnGzKaPNcZbiNx/GW6sq2d+Q==","shasum":"390fe2bd57ad41e03ff8ae1c5b70cc39f48d1c4a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.10.tgz","fileCount":681,"unpackedSize":28174075,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6E7wCVl398XpoVisUQkweSbK2tk09PKhVfTjdl0n7SAiEAuKZEYYT737rdeoHZID6YPjFl2fIThplLouhIMVFZf7c="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.10_1632506126153_0.5575256517205005"},"_hasShrinkwrap":false},"3.4.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.7","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.9.6","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.24","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.33.0","@aws-sdk/client-sqs":"^3.33.0","@hapi/accept":"^5.0.2","@sls-next/core":"3.4.0-alpha.11","@vercel/nft":"^0.14.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"fdf13ade4581d0f414ef9446ae3c32de44b7b208","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.11","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-ISgR9usx6A+rxqz2QC4vysoqB4FwWO8rnXQAgrLIsR6HlAL2+JKB/OYWA/yJypf1wCfOosTdaPBpxW78v7S++Q==","shasum":"57c7d552468d53c87f70c7152538eefacfc2ee17","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.11.tgz","fileCount":681,"unpackedSize":28173444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEl3jWLdF3M0eTlk3+j3dbcCOeY9zwN+n3UDw3r9alJPAiAEPFXEp2nscgtodMx/qm8WJoOEHYHuIKGn7eOW7Le1Bg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.11_1632614556864_0.3628566555184387"},"_hasShrinkwrap":false},"3.4.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.7","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.10.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.24","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.33.0","@aws-sdk/client-sqs":"^3.33.0","@hapi/accept":"^5.0.2","@sls-next/aws-common":"^3.4.0-alpha.12","@sls-next/core":"^3.4.0-alpha.12","@vercel/nft":"^0.15.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"0553f7543bc09ed7c3bfc18e627f5c9a10ab2a16","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.4.0-alpha.12","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-/nTtEjLehQczxk2cVKFZ4l2NZrSIDxJ+wC4TA5+8OTqSO1QeL832dWb9zVu017ehue2hi8pEwavrmC8LEhjE4w==","shasum":"13953942daa2168f42db14e0bd62893d1bea32fc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0-alpha.12.tgz","fileCount":707,"unpackedSize":31097617,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBox4pfDR6i+LFHAat5LnQDPsbnbgP+F1XJwp6qI5iSgAiEAkbvTjjm5i0CQNhenfdgXdUGxBw1Bp60C0FyHlSYyyBY="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0-alpha.12_1632763569091_0.9630520824545119"},"_hasShrinkwrap":false},"3.4.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.4.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.7","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.10.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.24","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.57.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.33.0","@aws-sdk/client-sqs":"^3.33.0","@hapi/accept":"^5.0.2","@sls-next/aws-common":"^3.4.0","@sls-next/core":"^3.4.0","@vercel/nft":"^0.15.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"14d410d4a71c2ea4f5b4bbea4bed9f1c0627b8fb","_id":"@sls-next/lambda-at-edge@3.4.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-B2RLkPAoGMwHLbhaxaJadVhTaCdOK2ILpfQdMmgPBfdh2nRQb/smx0wW18jG3c667TPuI+a1oJEkjf5yHUfXaw==","shasum":"0e90d95e0f9eead96678a95e82d531ea3a114d90","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.4.0.tgz","fileCount":707,"unpackedSize":31097590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnYbD487e4sjOinJKrGdD8p3k1h2xte/L1XIW+SuNy1AiEA0enEzKCK+HzpM4j0Ugv24xnYqsInCwUVwUdA0CTHl8s="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.4.0_1633158280334_0.3626536417473747"},"_hasShrinkwrap":false},"3.5.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.7","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.83","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.10.3","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.27","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.2.1","typescript":"^4.4.3"},"dependencies":{"@aws-sdk/client-s3":"^3.33.0","@aws-sdk/client-sqs":"^3.33.0","@hapi/accept":"^5.0.2","@sls-next/aws-common":"3.5.0-alpha.0","@sls-next/core":"3.5.0-alpha.0","@vercel/nft":"^0.15.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"545c5b6da08af641c7898cf49b142e928a12e102","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-0FX5ksSvsduJv3c9tCmWaGKUn9LmLG3Au7oAV0+t0oYizsH/fNLtzgoohi2EREbeORAYSyzync3bvbZf/OR+FA==","shasum":"ee781dff827ab32e16db12b185c37c5df900ba3a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.0.tgz","fileCount":707,"unpackedSize":33671217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXyUXb9M0xXPMJPhi6OcRzISoVoi7x4VYoxmCKFOB9bgIgN1J2mADv1Prgz1naInJLZrnM1lb64SLHaCm8ulfOzKQ="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.0_1633504367636_0.5448172044037776"},"_hasShrinkwrap":false},"3.5.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.10.4","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.29","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"3.35.0","@aws-sdk/client-sqs":"3.35.0","@sls-next/aws-common":"3.5.0-alpha.1","@sls-next/core":"3.5.0-alpha.1","@vercel/nft":"^0.16.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"75416820bf53a1388674fe8d18a6a6b4144832cd","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-arx6FZR5U4cOJ5Uy/OOj2PaqAvhDJUUDX+5+C+bgORuJfUoXALbI2AJ2lKv9pkzy5lSshfNeKi9oRb84vAAxzA==","shasum":"9e00f0775ea2d5ac99ce1b7d1956797ac2daeb32","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.1.tgz","fileCount":693,"unpackedSize":33521392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5clK7V5U+L5Ro+fcrtabjRcWa2NLBCf1xTiPcYvojoAiEAz6rhz49wl+n/x//ZrvQin2B0Mq5gCWL1kKPhzmOx7gU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.1_1634105535172_0.37054272823923906"},"_hasShrinkwrap":false},"3.5.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"3.35.0","@aws-sdk/client-sqs":"3.35.0","@sls-next/aws-common":"3.5.0-alpha.2","@sls-next/core":"3.5.0-alpha.2","@vercel/nft":"^0.16.0","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"02bf313c287556980f95c540cfa8df04f5974b2e","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-gaU8WBLIch4Mez9yKZ/nP1tN+f7At/N3/BRwJr2YtYteiC/Thjhey6VSfIxWx6OJ1jx5dQnxa4F3M99TzSR4Og==","shasum":"3e888b92064e87efbe3f2c750f169e3f8d885114","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.2.tgz","fileCount":693,"unpackedSize":33521392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5uv2du0Wy8uhgLrz44MQV6ClMobPjvjOhPtd49mDU6AiARFpIQSvvCN6jaZ+A+BWSe83PRE5a92ONcYa3MLr11qw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.2_1634370064884_0.9625060001414996"},"_hasShrinkwrap":false},"3.5.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.0","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.3","@sls-next/core":"3.5.0-alpha.2","@vercel/nft":"^0.16.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"61afadbf6d0c801da0ee7d0ffba73a8fa5ed47a6","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-cbIsMiscmH42AmHdHzd0VH31Jsh4ehxRjsFagcvnWWVr0dt5LWl9KPw1CLk3PqqQ+oXXz7BT4hS+avKPhTjTyw==","shasum":"a8bd724a287ce90d928a9af48137c475377e5935","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.3.tgz","fileCount":663,"unpackedSize":33460348,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyu2vuQKg/pvARnNQD8QXrg/elppspwv8GAwefSIrYDwIgIPfFWCCWrWSPO+f23Ip5jj5XVRDpd8qNJfGSD4L29mA="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.3_1634425713678_0.04798157199633302"},"_hasShrinkwrap":false},"3.5.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.4","@sls-next/core":"3.5.0-alpha.4","@vercel/nft":"^0.16.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"a75d3fe28d264ac467495f445cfe57ba57ed435c","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-HLfHAOExCoohQHj6wcNe1R1Rd2wwZmdnKaLgKgfU5Bjv3PradOMl4kFg2dKedOaQXqNBY4TYVXe78NM+HcnGdA==","shasum":"cf958bc9277a9d3a2b0e35746be6ac46ad9045b7","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.4.tgz","fileCount":647,"unpackedSize":33453243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRvz27KxvjS9JldqVnlUaM5WtR8moCVaaPErbUHMRZcQIgPRC/xyJ5XiqyYuCbdFi67WYoXG6J63/kvPLGL3bp5no="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.4_1634545271176_0.8568008231575499"},"_hasShrinkwrap":false},"3.5.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fresh":"^0.5.0","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/send":"^0.17.0","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.5","@sls-next/core":"3.5.0-alpha.5","@vercel/nft":"^0.16.1","execa":"^5.0.1","fast-glob":"^3.2.7","fresh":"^0.5.2","fs-extra":"^9.1.0","get-stream":"^6.0.0","is-animated":"^2.0.1","node-fetch":"^2.6.1","normalize-path":"^3.0.0","path-to-regexp":"^6.1.0","send":"^0.17.1"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"51b4d058823d4cff48aff98c15d749dc4b8a45c1","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-G/V3JAMbRrne6ArYutLFnndGZzgAGFsrEPmNhTgQK5ka3E5kQyLL+zykt++J4Y7hEZe0/xtfHhY0kea4fZ5Z5Q==","shasum":"4e7f5e57d8280108cda0c07ce023400bfc995d81","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.5.tgz","fileCount":647,"unpackedSize":33453243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE11cprazEtFEt7nb0I77fxLaoIWW+I2R1Ao72Fvgs/9AiBnXZH3jqAwCzOvBHlR9U3xPNr/sLn6BihDqbiZ12VFIA=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.5_1634582916254_0.10769137458449984"},"_hasShrinkwrap":false},"3.5.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"rollup --config && tsc -p tsconfig.build.json && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.6","@sls-next/core":"3.5.0-alpha.6","@vercel/nft":"^0.16.1","execa":"^5.0.1","fs-extra":"^9.1.0","get-stream":"^6.0.0","node-fetch":"^2.6.1","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"e735416b616fb654da9f95f35b128c4c16de5b65","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-TYrjk9OclDFaRTUpxlwOYREpGNgam0gSnCvJQTCdbrUibbvV40NUmVukAwXCdM9A1mwGVAP73tYwTWGtgwIvDg==","shasum":"8f7ca967e74725e2c387cd12322e1ffb831213b4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.6.tgz","fileCount":647,"unpackedSize":33449476,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+4gl1iny0/ylAsW8ADxS27AabaQbHjhEUGv133rQfiAiEAshS6taUUPF7uKTiSatiRefoS5VKnKItPPjDtNCUZehg="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.6_1634607344733_0.17789901417300702"},"_hasShrinkwrap":false},"3.5.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","copy-sharp-modules":"ts-node scripts/copy-sharp-modules.ts","build":"tsc -p tsconfig.build.json && rollup --config && yarn copy-sharp-modules"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.1","@types/node":"^16.11.1","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.30","@types/react-dom":"^17.0.9","@types/sharp":"^0.29.2","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.7","@sls-next/core":"3.5.0-alpha.7","@vercel/nft":"^0.17.0","execa":"^5.0.1","fs-extra":"^9.1.0","get-stream":"^6.0.0","node-fetch":"^2.6.1","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"4f60e8d36f135748e6150e6ee1537615fcefaf8b","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-c6eYVN3W6n1KKBz5ixQjdJVXrrnxmAarRpLpE5hevwW0oz/yg9CCeNSTrJ4Xq5sRpbbm4YE6hnuuqTIMjaqKVg==","shasum":"95ee34f3540f3b8721caf150ead373f2c16ba4a9","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.7.tgz","fileCount":647,"unpackedSize":33451128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2rHVkZ0R1SZCdDhMKeG9p4ZvpGBA4AlIhebu+Gwzt7AIhALi+Tr65H+//yJMDk/Qhzq/hHsbGAiBZIPo9K4uUKSdX"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.7_1634628765495_0.19628517236969278"},"_hasShrinkwrap":false},"3.5.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepare":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/eslint-parser":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/klaw":"^3.0.3","@types/node":"^16.11.2","@types/node-fetch":"^2.5.7","@types/normalize-path":"^3.0.0","@types/react":"17.0.31","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","fetch-mock-jest":"^1.5.1","klaw":"^3.0.0","rimraf":"^3.0.2","rollup":"^2.58.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.3.0","typescript":"^4.4.4","uuid":"^8.3.2"},"dependencies":{"@aws-sdk/client-s3":"^3.37.0","@aws-sdk/client-sqs":"^3.37.0","@sls-next/aws-common":"3.5.0-alpha.8","@sls-next/core":"3.5.0-alpha.8","@vercel/nft":"^0.17.0","execa":"^5.0.1","fs-extra":"^9.1.0","get-stream":"^6.0.0","node-fetch":"^2.6.1","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"05517931a6d3cf7a02bb2230801bd7aa79df42b6","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-SZZB/LkZPunZZNM8ZUVFmu6O/zotCpFGc42rmiR9qpICXGJym/TDbJ2GcXbwlZXPdL1bZWTKIe0gkyoVh9ufkQ==","shasum":"6d6c46189f254189f76f59388d5859a32ab75c81","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.8.tgz","fileCount":65,"unpackedSize":9583646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICU0TujuQsm1FKwiVRFC1eCsaVbCuTpwB3s+YuNAMNajAiEAgvNEyB5d+5eqZDqsU4hPkpAP5bG8JQhJiw/KpLiC2sQ="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.8_1634955625642_0.6986289777762038"},"_hasShrinkwrap":false},"3.5.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"3.5.0-alpha.9","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.32","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.59.1"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"3.5.0-alpha.9","@sls-next/core":"3.5.0-alpha.9","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"642580832e3b3820331061f1e7a4d8b5a88150d5","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.9","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-0kDhV0cNcIxqXKJIiWFklZpsdFJ3ZF3rKFLJl3UuOJdCewKCPiVd/FrrVHpXG0b7pgU/mJjtdvy+o4FdZ1ofnQ==","shasum":"7655a1d0953ecf3a2b5bd5565279c5382bfeea4f","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.9.tgz","fileCount":61,"unpackedSize":12247524,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYyvyxkVci1saOUahBYN08UHK+oXlKwxXMV196H33DtQIgbhOXWxE+h1K8MLOrK5QZ6HcvEr0l8Srlm8WGKDJnWoI="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.9_1635153644451_0.3138818033581672"},"_hasShrinkwrap":false},"3.5.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"3.5.0-alpha.9","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.32","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.59.1"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"3.5.0-alpha.10","@sls-next/core":"3.5.0-alpha.10","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"eb5684126d971d8840b1060d84a844e5c7735945","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.10","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-Nq9Nqx2oAKmjQa0oLlbWyF6cE038QWrJTODuDpd0B07p2lMxIjKbe0vvsB7nDGvO7JXV76J1L12vFrBuZmSDgw==","shasum":"3fd557566015e860deb559a845b76d99c2f52ccc","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.10.tgz","fileCount":61,"unpackedSize":12247527,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH9jSiMFwgR4l3+3SZgSFIULevoYHyNc3RoHSk2/l/gAIhAItaAPT2kPnh4BlUURqzyv6L2hkTh++BjSNPdyzn4DqK"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.10_1635154788967_0.11666915281864831"},"_hasShrinkwrap":false},"3.5.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"^3.5.0-alpha.11","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.33","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.60.0"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"^3.5.0-alpha.11","@sls-next/core":"^3.5.0-alpha.11","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"cc63c02a5939c96c5e4457dca004d27e256c7bc2","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.0-alpha.11","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-hGp/j3vLl8juErTRdQWQUYspyF+tc1LBOSA0zYC7ApGmmF2nvfHJxRDcMvFSuNS7LVwBRdAeUw/GqYpdt0v+oQ==","shasum":"314757818afdb592c6d84a7378c4be566a0a5351","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0-alpha.11.tgz","fileCount":59,"unpackedSize":11365165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEgA9bC24G2T4HwNMvf8HVzr/xuPGSB1Tk6oya251AgAiAiMC8ZoTsThjcPaVOfEEgDFvNnH3AhwBY1p63+SdHsmg=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0-alpha.11_1635379435932_0.023253909830868613"},"_hasShrinkwrap":false},"3.5.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"^3.5.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.33","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.60.0"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"^3.5.0","@sls-next/core":"^3.5.0","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"dc4bbcbf3557fbd1e5ca93127e1f10c8cc497df5","_id":"@sls-next/lambda-at-edge@3.5.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-dMz9CuWldzANbZrtqdKwAeHlL3Glmac0IW1chnvkKnRE1aOr2BJ2W2U/fzMq7ywghxTfHodqHwNw7Y+pkcu5dQ==","shasum":"251c9ac6995f7fd06129d54e8471b26848c48855","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.0.tgz","fileCount":59,"unpackedSize":11365129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcikXV6MfOlK8Mv2560KKstmBd+VqlUHRT4vtudIRWdAiBHCNGVZ1Z47ixArOsIO5nCA4JMPywuK08x182GfDx1sQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.0_1635379799127_0.2537724901004146"},"_hasShrinkwrap":false},"3.5.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"^3.5.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.33","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.60.0"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"^3.5.1","@sls-next/core":"^3.5.1","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"5bf096b7fb75f0783cfdcd904524b25789e66f10","_id":"@sls-next/lambda-at-edge@3.5.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-9MOgZ5UYpdp3PYSS6KzN72DFbtH1qb2hpcmITC+dmUDD1aZwZHQ7V9L2z43ADQnqvDvEkiuo2XSev1X0DglB3w==","shasum":"5a2fcea3102ce8e35028bfc5c87f363e40eab467","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.1.tgz","fileCount":59,"unpackedSize":11365129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPkA5fi5u9H7UMUUjJ/8YloPyMvG1iZZ1GnFDtmFl7WAIhAMDYOAlPDzlUlkICngksWEyIx/cDD3sVywQ+LnZrvqn0"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.1_1635396038707_0.3551815662450222"},"_hasShrinkwrap":false},"3.5.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.15.0","@jest/globals":"^27.3.1","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^10.0.0","@sls-next/next-aws-cloudfront":"3.5.0","@types/aws-lambda":"^8.10.84","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/klaw":"^3.0.3","@types/node":"^16.11.4","@types/node-fetch":"^2.5.12","@types/normalize-path":"^3.0.0","@types/react":"17.0.33","@types/react-dom":"^17.0.10","@types/sharp":"^0.29.2","@types/uuid":"^8.3.1","builtin-modules":"^3.2.0","eslint":"^8.1.0","fetch-mock-jest":"^1.5.1","jest":"^27.3.1","klaw":"^4.0.1","next":"^11.1.2","react":"^17.0.2","react-dom":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.58.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","sharp":"^0.28.3","ts-loader":"^9.2.6","ts-node":"^10.4.0","typescript":"^4.4.4","uuid":"^8.3.2","webpack":"^5.60.0"},"dependencies":{"@aws-sdk/client-s3":"^3.38.0","@aws-sdk/client-sqs":"^3.38.0","@sls-next/aws-common":"3.5.2","@sls-next/core":"3.5.2","@vercel/nft":"^0.17.0","execa":"^5.1.1","fs-extra":"^9.1.0","get-stream":"^6.0.1","node-fetch":"^2.6.5","normalize-path":"^3.0.0"},"peerDependencies":{"builtin-modules":"^3.2.0"},"gitHead":"0594867af137938102d2dd4390d384053a26483b","_id":"@sls-next/lambda-at-edge@3.5.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-oBDOQHqo+i9JLPCP9zP1XQdTzzKR6ppgfHmYWFx0wIIpVSh1rCf5gOjXM9gMviVxs+665UiJNAd1hpkuYgbIsg==","shasum":"a5c01c0aadc3eb351e82676a93cf2507b98635fe","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.2.tgz","fileCount":59,"unpackedSize":11365126,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1Ycy/5YukZpNM2XlGledXY+F8SjSoMuGOywdNOIik6wIgKdN6P3AOToCJe2qwIN2cf9P5bGL89oxvAklUINFxVMc="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.2_1635398265584_0.49036605634040975"},"_hasShrinkwrap":false},"3.5.3-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.3-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.15.8","@babel/eslint-parser":"7.15.8","@babel/plugin-proposal-class-properties":"7.14.5","@babel/preset-env":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.0","@types/aws-lambda":"8.10.84","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.33","@types/react-dom":"17.0.10","@types/sharp":"0.29.2","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.39.0","@aws-sdk/client-sqs":"3.39.0","@sls-next/aws-common":"3.5.3-alpha.0","@sls-next/core":"3.5.3-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"554b3de9e53885091997687ec15e8793c0f597dc","readme":"### AWS Lambda@Edge library to help you deploy serverless next.js applications to CloudFront\n\nThis library was created to decouple the core logic of deploying serverless rendered next.js applications on the Cloud agnostic of a specific provider. In other words, this library could be used to deploy via serverles components, AWS CDK, or any other providers you'd like.\n\n## Usage\n\n```\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\n### TODO:\n\n- Provisioning and configuration of the CloudFront distribution\n- Create a separate utility to clean up unused Lambda@Edge functions that were previously attached to a CloudFront distribution\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.3-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-ap4KgxfAYWgLS8uCVf3FRgB+HltHb8NfbqAJvT2OhJcvvYhYBJ/f8hR87q2e4hKpYVTGq8VsIz4YyIJmr4Sjdw==","shasum":"91663d0cefeb1d4b5b53c9d6ebe004dd34be401b","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.3-alpha.0.tgz","fileCount":59,"unpackedSize":11365101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBSXiXZg5631OfXcpVdEbv6Nx+ytvehenQeCMW8bBn15AiEAtWphWJzAFuwwPN0H21eRKAYukhwaEC8XAk4wvkM7j7c="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.3-alpha.0_1635481979119_0.9326246119687793"},"_hasShrinkwrap":false},"3.5.3-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.3-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.15.8","@babel/eslint-parser":"7.15.8","@babel/plugin-proposal-class-properties":"7.14.5","@babel/preset-env":"7.15.8","@babel/preset-react":"7.14.5","@babel/preset-typescript":"7.15.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.0","@types/aws-lambda":"8.10.84","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.33","@types/react-dom":"17.0.10","@types/sharp":"0.29.2","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.39.0","@aws-sdk/client-sqs":"3.39.0","@sls-next/aws-common":"3.5.3-alpha.0","@sls-next/core":"3.5.3-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"42db6573fa26e727ed4aab1530fac22a0e8a6329","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n`default-lambda` (v2): handles page and API requests.\n`default-lambda` (v1): handles page requests only.\n`api-lambda` (legacy v1 handlers only): handles API requests.\n`regeneration-lambda`: handles regeneration requests used for ISR.\n`image-lambda`: handles image optimization requests.\n`assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\nAWS Lambda@Edge\nAWS CloudFront\nAWS API Gateway\nAWS S3 Bucket\nAWS SQS Queue (if you are using ISR)\nadditional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.3-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-OHZeNw5bWjGZps1p4r4jyllfyTRPgP7UoPYjHYO03P/EGdIFpt65akS89MSHMQRT59xI2bF64TZn/b9i/VgdTA==","shasum":"cc7458d7db1605885f9991a9c957cbdc2dfc37a6","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.3-alpha.4.tgz","fileCount":59,"unpackedSize":11382465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC42js0d16h0lewYWF8HccU/+z/8F65W4q36j/vvyYbjQIhANEaARRx1qzPO3aRoFel4G1iS92l+z6AdsX87TOOYgTY"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.3-alpha.4_1635570054247_0.9061347646963405"},"_hasShrinkwrap":false},"3.5.3-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.3-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.0","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3-alpha.5","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.40.0","@aws-sdk/client-sqs":"3.40.0","@sls-next/aws-common":"3.5.3-alpha.5","@sls-next/core":"3.5.3-alpha.5","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"6d761ff76c5fddc0e2c091573cf1f9501f9ffb63","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.3-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-KgKt1+TTc3u4AFzuIxv+iRlXFusBgYtpzq2BHpNRCr1UCCJKbHUrn6ui6LDkKkFTvKDJ2cxt/UCmW6YPUmXafg==","shasum":"12dce98c2d2a2b99dbee2711da6a3a681c406246","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.3-alpha.5.tgz","fileCount":59,"unpackedSize":11519887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2FQIN0mBgbmxT02VbHj325HqCzJRgeQqPonOS9MCFmAiASrXY215ZW8IjUx0zCX8NLdawoJE8h+smNpv7SdTf0zw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.3-alpha.5_1636366054067_0.9108514676904493"},"_hasShrinkwrap":false},"3.5.3-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.3-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.0","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3-alpha.5","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.40.1","@aws-sdk/client-sqs":"3.40.0","@sls-next/aws-common":"3.5.3-alpha.6","@sls-next/core":"3.5.3-alpha.6","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"bf17be53dffc6c727edf21fa3333f422f4fadcb3","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.3-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-kqTD40O7aprohd8LqPvkDObu3VvwwAnEM1vOr5at2LLiLm2JH2Jxz41zQOfmYB0hDi0ISirqxnnPECqX9lbQtg==","shasum":"2f3cdbfdc9cbc1841223f6ba146fa9cb3793a448","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.3-alpha.6.tgz","fileCount":59,"unpackedSize":11520248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAT5KeSbtLLdphADWOM8ZxTm4XmLmVhDahlhSnZiEkfjAiAG0QOfBr4U9n703763yO+rLygbBWArJqbfr45SfE1yjw=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.3-alpha.6_1636422648992_0.4102763966752727"},"_hasShrinkwrap":false},"3.5.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.0","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.40.1","@aws-sdk/client-sqs":"3.40.0","@sls-next/aws-common":"3.5.3","@sls-next/core":"3.5.3","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"431bf3c912d33cab11876300e1cd1421a983ff7d","_id":"@sls-next/lambda-at-edge@3.5.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-WaAxA5QZUgSZaa/5VuAeQOCq/9QoS+RMli/Cs4ZafB9yqJxn4OP5a3SQ2aafnodGUCZTgrQzRKwacGt8o7g9lw==","shasum":"a279524413f627ba456d85ed2f0c835f0191ec4a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.3.tgz","fileCount":59,"unpackedSize":11520216,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF67suIYEDc1j1B/DDR79jc83zhODPrjfCSDnLF/OGd3AiEArw1dpkuG/F5SMQkWcG1vl43jWH9YyOEd/eEejGDznTQ="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.3_1636425738215_0.4935302803994428"},"_hasShrinkwrap":false},"3.5.4-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.5.4-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.40.1","@aws-sdk/client-sqs":"3.40.0","@sls-next/aws-common":"3.5.4-alpha.0","@sls-next/core":"3.5.4-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"ad106665f17f659f79e0830afe673dfe54a3464c","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.5.4-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-t4PXHaNdMVt03oUYXTjdRtaVdotqQCNw2CjJ+kFTod9UIhjWJM7+/lpn+By4bfG8YNsWw+RHJ7qnG9C6+keGWQ==","shasum":"accb83a8df0913687ca3c4e64608ee120b037d9d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.5.4-alpha.0.tgz","fileCount":59,"unpackedSize":11522652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyOCUk6rijj577/mITViOmR02lC1YtBla2S3FvflsVIAiEAxEzhHxcq+nT1b4jIXiA7+0XkV6E9nv4bbFHSa5QGyL0="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.5.4-alpha.0_1636529438842_0.5199548787832595"},"_hasShrinkwrap":false},"3.6.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.6.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.41.0","@aws-sdk/client-sqs":"3.41.0","@sls-next/aws-common":"3.6.0-alpha.0","@sls-next/core":"3.6.0-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"8a0ee431b57460204d0e1a4d4333e1f93a4c2b01","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.6.0-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-W4gbNKxgYxTq8gC1uYNWdEUSP1shOQN4/X/yEIfBbVJZQ/0vyblzJX5uuViqPbSUwzUNvJ7pbfrTVzJ9XlspXg==","shasum":"d9b080050f9c609f6a58211c14aa7c363b69b8ce","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.6.0-alpha.0.tgz","fileCount":59,"unpackedSize":11525122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7NXo9JGLliCCgv5FM1wur+o1Ef4FJUcR4HV4cBIv/pAiEA4vd+8YT5YKriWIuD+xvrA/vWakTuD4+YjHR2MQn/5SU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.6.0-alpha.0_1636852954491_0.9727062170124328"},"_hasShrinkwrap":false},"3.6.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.6.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.41.0","@aws-sdk/client-sqs":"3.41.0","@sls-next/aws-common":"3.6.0","@sls-next/core":"3.6.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e4d66d6d636391721a9da86812ed577f5a5080f4","_id":"@sls-next/lambda-at-edge@3.6.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-vNwOTd1hdF4zjHrtj+1OutksEuicA3+hLj/V9fWlT9WFr6cMkt+Dl00GVtBlTFvC8LoT/GoIyiglIx56oE23cA==","shasum":"f0fee88ef064f61047b5f1cd5af5761d226cd14e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.6.0.tgz","fileCount":59,"unpackedSize":11525098,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcU5f8Cmr2VU/C2gDyXML8Dx6wPj0jh39PqIb6MO5jVAiBnB9etgb2AD1kWe7x2zJ0Tzcvue9JMNu00XQ97tDF4/Q=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.6.0_1636853741749_0.12130651349963295"},"_hasShrinkwrap":false},"3.6.1-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.6.1-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.41.0","@aws-sdk/client-sqs":"3.41.0","@sls-next/aws-common":"3.6.1-alpha.0","@sls-next/core":"3.6.1-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"58fb47477f0219e8c7956fb080e705973798c88a","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.6.1-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-gw2S3Rag9Ica2mLzf/7ZFFVu0IgMRQ4eWNTOvHCXyz4LWFOY35TD3gidrJ+qSo52Txukt7tYR2uOl1fh6kbaQg==","shasum":"63117a592c7269aca96ad186ef124d5cf8b920a2","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.6.1-alpha.0.tgz","fileCount":59,"unpackedSize":11538647,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFh7A22izO0PLxURW4/ZF4/DWJb7vTrfkXt3kSpypSPbAiBbcZbaMlk4tNAS+A7EJu7embQ03V1THzrTBUnPKye7rQ=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.6.1-alpha.0_1636923775334_0.05471938523409903"},"_hasShrinkwrap":false},"3.6.1-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.6.1-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.0","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.2","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.34","@types/react-dom":"17.0.11","@types/sharp":"0.29.3","@types/uuid":"8.3.1","builtin-modules":"3.2.0","eslint":"8.1.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.58.3","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.30.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.4.4","uuid":"8.3.2","webpack":"5.60.0"},"dependencies":{"@aws-sdk/client-s3":"3.41.0","@aws-sdk/client-sqs":"3.41.0","@sls-next/aws-common":"3.6.1-alpha.1","@sls-next/core":"3.6.1-alpha.1","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e1cc81cd769b96051a2d4293ab88906a9f2972b5","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.6.1-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-8mp6K0uS7OkOMaUGk5XZbsSkkk5LQoNjYQuvYscPnngVlM9IAys+syzwoHjRr5Qnx65vPN+PLmL9V/9+9r0xtg==","shasum":"c18c0180f240455b7d5564368a730e19e9637281","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.6.1-alpha.1.tgz","fileCount":59,"unpackedSize":11540573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSrx+1T9qqwXI9lM0rrZAOos/LAE82FuzjVxRED0NsEAiEAsbHpJLefQIF2x+x7Fl5e2VCPtZsVs5/VP8yNhIeM9Uo="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.6.1-alpha.1_1636929941442_0.7332325468475047"},"_hasShrinkwrap":false},"3.7.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.4","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.3","@types/klaw":"3.0.3","@types/node":"16.11.4","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.35","@types/react-dom":"17.0.11","@types/sharp":"0.29.4","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.2.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.60.0","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.2","uuid":"8.3.2","webpack":"5.64.2"},"dependencies":{"@aws-sdk/client-s3":"3.42.0","@aws-sdk/client-sqs":"3.42.0","@sls-next/aws-common":"3.7.0-alpha.0","@sls-next/core":"3.7.0-alpha.0","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"07b779507b72f9bef8cbd51b943332d5b8791aa9","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-BUlj7wEALlh6zgHo2WKcdybNAL0yMiXRyC9uPq/9DNW7ILPLxoSyrXAhyX2b7wcvmOra7nkmwhzQNIG3LvUOmA==","shasum":"b4bfcd3a2802c3efacdee55052d3f7f820eaaa41","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.0.tgz","fileCount":59,"unpackedSize":11546284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmaqxCRA9TVsSAnZWagAAapkQAISIOCWiq4tRVEPL+Fq4\nAEWeeLt+qwWLMcY/3sb/b5lB0T96RBDbmaT8owB3iJ6ZOjUahPf73+Kp7uKz\nHJ/5Rg5wkyKHlBSbBbwUG98lhgzD0JCNFv8vZRaxCDzTGIbgktJYtt/KewdM\nQZGrbOFSwMXgTLke+S2UgeG1MjMzi6D1EVNXJmBpaZ+FP3SHA0gvd3uGBzfM\nTkS45wnB5FHa19tTkU2zk6USGawewrmcwi9Ed/myNZ5I6Q+qh1scnPWZeQlp\nJMPbOJv2H/n6DUOC4hR5yVNIlOd7otnFW77RzC0a0RBVH7hihJ4frryJGxDX\nBBkzpmdPkPXRGChsGMjB14VI/NNBJYQNxntwqCnv+H9JyCwUbY2rZpPIomyr\n5V+GAb/rnr7pd6AVyRz/MF+YGhmH/eYVgkZsOvTI3nMOIoKEFZI6PnN2APuV\ndBr/yg84fNw10SKSxusKBrKIcOM+I6F5B+VhDGwmKotVh4RzkHW5CgF3UqOy\nRhGxnKgYeTwvdCFxYSjNr+9A4DIgIILBvJj8JXHzoF5EF9+/VeRTUrSXMVi6\nXOuEsBevPEyUtitWJr3Mcz1KePlUazTWmqtIYmKfYAk/4tlGAUrTBRqFFONK\nvqMgcFauT0YPtDXMePGA87teAxgAseyBgk5NR1nBla6jEdojw+yEitYg3Q1y\nPqwD\r\n=pL2x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDXErE9VixGqxXrh2g/UIQEj8FQK7rfu8fW12a+FZDsgIhAK1hvs1eReRPXQdxbxT7GZ8qoh/zPpKItjPj0uKavuAL"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.0_1637460657390_0.5453761214402384"},"_hasShrinkwrap":false},"3.7.0-alpha.1":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.1","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.4","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.3","@types/klaw":"3.0.3","@types/node":"16.11.9","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.35","@types/react-dom":"17.0.11","@types/sharp":"0.29.4","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.2.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.60.0","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.0","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.2","uuid":"8.3.2","webpack":"5.64.2"},"dependencies":{"@aws-sdk/client-s3":"3.42.0","@aws-sdk/client-sqs":"3.42.0","@sls-next/aws-common":"3.7.0-alpha.1","@sls-next/core":"3.7.0-alpha.1","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"d58f28fcd2a0f2dbc42c01d38e6583ab1f951973","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-CRak5RC9cWVVeQmkNP2I73FF0sJlwD3JeyHnpg9ARKGfgZVFDmocNe+xbXLXW7KYH3NojBp5rnxqBqy2GNZ4jQ==","shasum":"21a2669342cfd79b80efe857a198720d35c062d0","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.1.tgz","fileCount":59,"unpackedSize":11546284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmfbFCRA9TVsSAnZWagAA1KwQAIgNCQnDSFdnWqAU2+/Z\nLHw4lQIVPPygu8XL8NNPA38A3GLzYJKrwiFloQhEQAJzsZXcu5KU2sVCnTZi\nNqlmwlR2MhEhSDQ/v2ASTUPuEQewdA81Lq1C02rAOhUMbr5S+F+A1kMU5S1N\nWNq7sbIENZXXW16qYtq7fBZ6mrlKMMuinyCeZSFTUf4XexJjxy2691xte6zB\nKUw9dIjNe4Q4IPazVujai/O9XEUXsfseHA84JQnOBQ0qUgsbxexK4vAK8oyH\n0+kJXiLY0SqomCdINJ/D5Dy7sfaMp+3fWJMekRz0lKciolnYRO9r3BTrTSfV\n4oAs550DGcLXfFDen3JJ6BEW1B+7SiYV2OBA5GWzve3dgJly+UkT1h4JS4pJ\n2MZOT6y08TOJRvqzmLJvVMazApD3sVhgs/apQsOaww5B4Asb24OmIAJKhbyx\nfqWvv5CLOxAGQ6LBAlaiu3SfjckraK2xiphjalIanJ0ZF0B03X0usUPnGMmP\nczswwavTSsjkJ+tC87RICS9gVCmTNJxTWtCmS41Vuv2A01wtgEmQ5rgW7bKv\nuxCWig/YD4iWLloOZnXMd1j7xLG18KRuPn9zkrW4jX6jPwq48UFanA787RKp\ndyH+y/vbFlP28kqZLVguP6WOTLUKDJ4ZqgXC3lKqk/IhICq5klptuCZlCHKi\ndSMn\r\n=e10l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/ZEM1bNx3RxRbXg3rQa8mJ8j+pdxCKd9h89SvbpbQZAiB0ceMkR9OoV7HbOpEPVfUFCZPpWcfvy4+US3mwDFSu7g=="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.1_1637480133233_0.007127267207263532"},"_hasShrinkwrap":false},"3.7.0-alpha.2":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.2","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.0","@babel/eslint-parser":"7.16.3","@babel/plugin-proposal-class-properties":"7.16.0","@babel/preset-env":"7.16.4","@babel/preset-react":"7.16.0","@babel/preset-typescript":"7.16.0","@jest/globals":"27.3.1","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.5.3","@types/aws-lambda":"8.10.85","@types/fs-extra":"9.0.13","@types/jest":"27.0.3","@types/klaw":"3.0.3","@types/node":"16.11.10","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.37","@types/react-dom":"17.0.11","@types/sharp":"0.29.4","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.3.0","fetch-mock-jest":"1.5.1","jest":"27.3.1","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.60.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.2","uuid":"8.3.2","webpack":"5.64.4"},"dependencies":{"@aws-sdk/client-s3":"3.42.0","@aws-sdk/client-sqs":"3.42.0","@sls-next/aws-common":"3.7.0-alpha.2","@sls-next/core":"3.7.0-alpha.2","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e8359837bded63b63e7acb50f4668dd7dfffc7f8","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.2","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-H6a/ZxlCYLOLpKmWF3E72y1UWWw9HhC43/bcs3Iej00b9Zylx+gG1G3PwSiLXh9KoU8m/kRd0RfzrGah+n71Sg==","shasum":"77ad95a34f9a35f223422145ca784f0e56f615c4","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.2.tgz","fileCount":59,"unpackedSize":11546314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpHv/CRA9TVsSAnZWagAAkPwP/RcjeNDncmOGd57N4+WY\nDqCgMFtIB/K5mQx4lIRQNX3oDOIfpMGsJEPSmqm3cVICWP8NKfRnhbQrE1i3\neLTzFOqKTIrud+c+rAcVD8f86n8cFJLEq2FST1l/nCClJJvJZOUMbp0u5mSf\n6ohHCRGVJmdqDf2fKGOGWfBnoyV+LoLo7KBNVZzgu1uTQclWzIaqh9rYwPtb\nxXVWlE5z+Ac0yjpf0JkgFmh9pu4qEsNr7qVIAr/c5PpQlx0yCBCSnJ8Z8tf4\nqpIspH1LrqsgejIrAIs0RxGgEJH3Tb5S7s8DAbHRL4ssCmxieDckO9ISBOWS\nYyZco7K0gaO9Hc5gm+xXDsNIjZkyN1yt4nE4TXHq8w4mkJccacCg2bNPqX8V\ntOckQsZW1ByjkT/kydr6PCpWFnJi1TAy1bccyzDN4lWZIC0hhvltCTQM0yR4\n195dbKdXcYNC9czBTDWuDblHYhhPevL1cLb1EW4VZniif9sXQcDd5FORqqNI\nBkGNeAR9Ii+bE/6dnGi95+Tt3aD4UFXKFsUuDdvRdX6azmCpnJTHSU6fHXZx\nSqg7Z1ozpXXkV+doHXrNqvb7Imb7L22k0Lzi8UlZmjicva7hRILSPmxBXL9v\ntvlvzvLIS+qpBmXvE5mcY0z7TKSEZ5zzOSIIOtBAefxHkaHftI+vK+kKriRD\nUVU+\r\n=0Xwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUtL4BngNkRaiBCAhE4TIceb28/ut1QUhf7NkMsrJHOgIgGcWcdir8JHwl0FfLSxU3+kpHdNjbKztinnie6fyYrMU="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.2_1638169599306_0.7692685662475554"},"_hasShrinkwrap":false},"3.7.0-alpha.3":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.3","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.5","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.5","@babel/preset-env":"7.16.5","@babel/preset-react":"7.16.5","@babel/preset-typescript":"7.16.5","@jest/globals":"27.4.4","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.3","@types/aws-lambda":"8.10.88","@types/fs-extra":"9.0.13","@types/jest":"27.0.3","@types/klaw":"3.0.3","@types/node":"16.11.15","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.37","@types/react-dom":"17.0.11","@types/sharp":"0.29.4","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.4.1","fetch-mock-jest":"1.5.1","jest":"27.4.5","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.61.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.4","uuid":"8.3.2","webpack":"5.65.0"},"dependencies":{"@aws-sdk/client-s3":"3.44.0","@aws-sdk/client-sqs":"3.43.0","@sls-next/aws-common":"3.7.0-alpha.3","@sls-next/core":"3.7.0-alpha.3","@vercel/nft":"0.17.0","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"af3c40b55da382d9240151a2c2be55024602cbb8","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.3","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-6fR/f9Qm7k4Jc1iAOhZO89TdFIWjY+CCOI00SN72PUbeA7UUTX1Yy+QVI8bWzfLdqwcu5DIEZgt0Lu1VakXCfw==","shasum":"d8bc982b3ba18546dd67b024ecdb7f40bcf0b1ac","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.3.tgz","fileCount":59,"unpackedSize":11551494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw6WkCRA9TVsSAnZWagAAP4YQAICuTeiNL22EOXzIqhAR\nDMjsQQxZ+RSBAuX5yT7Sy0VgiUiM33Qml9gYy5U9Y5gfNgZTYX60ao/uKoM6\n81aoBp1Y35uQ6xg09Pg9ObBRiPPp7IwQdCHlVL5nkroh3Yu8l9FLm/xiYL2/\nrnc5ErhfBV9fvVeotvJCt71vOZQchhFq+3kjk1m5b4N6QRl2plGOPCmpGs+X\nID7uj4QRnxRyATxS0gHt2TmeUNjK9tAFFRMERCiTY+qdpZcNzxhEaR/WmE0Z\nM/HDxVLO1b7U+EccOAnD/XhBfL99QnAvcHqrGUGoSLjITk6ciMRBXkKw2iXm\nfSqm3R3qTqH1aJ5kk5tyX0eG9dD/Ie3EtlLM0+Y/TVhjK5jPyiqaU+sTaV0S\nMJLWwT3vnOMaoSJc/eOkq6lp7O/BHs1iGYETzCLmU6M0ocyEH6w6If3KlsPG\ndL/CNtBwzAxOv/5+nPlzoedUG2MLXFFSiAsrUeBdiLZHKNSrWA8V4oc6O+uF\nnH7+FHJLO++M8inLUWeMQZkM87gGrSog/LOHammtXC2uEveDayhh65U2ZLwH\naiZ26UuoYVgKelJCiougphXs4lVHveuKAB7e3BMzqdgStGIQEzOP8yOoJgn8\n0Of0FKB3TF/wIjxnUJpXbSVeuDOE+7EqYFXfXft7WhgDHKu5o+woOHOgsFJC\nXGce\r\n=e8kU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxzAtPj83/cVEptLAW7vQsdTmpL4Q/WBmOKhEbdhencQIgbStCcqmP13UVsoyqd8hh72XxcanOGbxFsgtzmPgp2/M="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.3_1640211876342_0.058918171477900794"},"_hasShrinkwrap":false},"3.7.0-alpha.4":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.4","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.7","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.7","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.4","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.3","@types/aws-lambda":"8.10.88","@types/fs-extra":"9.0.13","@types/jest":"27.0.3","@types/klaw":"3.0.3","@types/node":"16.11.15","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.37","@types/react-dom":"17.0.11","@types/sharp":"0.29.4","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.6.0","fetch-mock-jest":"1.5.1","jest":"27.4.5","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.61.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.4","uuid":"8.3.2","webpack":"5.65.0"},"dependencies":{"@aws-sdk/client-s3":"3.44.0","@aws-sdk/client-sqs":"3.43.0","@sls-next/aws-common":"3.7.0-alpha.4","@sls-next/core":"3.7.0-alpha.4","@vercel/nft":"0.17.1","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"13acb798bc000f8cf921b89450a7962ce624f851","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.4","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-fcUUXMHXrBLE2nw+EidHnsqyd3E2GLl1S4UJ2OTHAzd68xYJXgn6WooOza/waM+x1TAfyrxzQdiCG6XX7yVR3A==","shasum":"6956ecd7498a2c4cd6a74a3a5f154cb39b71c65a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.4.tgz","fileCount":59,"unpackedSize":11551525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1UH9CRA9TVsSAnZWagAAmwgQAKJyDM+OlEdejFYNRYje\nVg9/cKGluFwcyugD2OsnY+NgUk/JalTUvkTV1KQSliAvBj8zO9LdMt1c6fDx\n7Tbn6HO8BcW15Pf3W4ls81Vj0Vra/rUTl/KONVsTPXY3HDfyRMoxz4V5Jbi0\nBzB4CaQqfHjpS5/003D+ERSuBaz8HAMua/3HhwwRk0nLKL/ufJANIuC1zxOx\nzTihUIYJWOwob5M1y97R+5U3MADfvliFnhDlNqNs27zTNDtt6iruiygOtAqx\n7k93dHLiyPkdEW95aqArHMQ2T27EeJccGXzIRrsg3BqCKLUfdVOsZT1w7OTT\na7qXcWcv8GKefA8tNj5vbXrRg+3Iofvd7+GalqvOxpYQFOScO7+W3+MRB6zR\nEy7o6YdlGdbA0qgbNtNyYcAwwDTTPWYTj7M/i62S79MVpUUqXp9LXd+STdBO\nQIP86o2IiIeIDgAsYdKiiFXlwveNobv2vVg7o90GXhlFDc76k1Dzha8gUpT1\n1BgBtHjVPHeHhRbig74nEshpR07sNoGi/LNDxuE8adhQq8UQZy6Aa36R3Wh+\n1WRiKZ0Nh40fub9HsnHhReyI7i2WxjEV37PiCFuN75b7u99FCINvMpyxe7AC\ns02lJSREWEEGQ4NLfcQv0AL977x9ZMW0x7BkXsporWjgRl6uGRPAEQ8u5+81\nyj2I\r\n=mds3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIMrpf9LkD1yED3MKVCCdKQR7SxLvCeWTKiuj6yE2cVQIhAKL/p162jwPskndIs55C7QbgNb9H1LtYFdQBqXiPznQs"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.4_1641366012861_0.6302196826108943"},"_hasShrinkwrap":false},"3.7.0-alpha.5":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.5","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.10","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.10","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.5","@types/aws-lambda":"8.10.90","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"16.11.15","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.38","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.3","builtin-modules":"3.2.0","eslint":"8.6.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.61.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.4","uuid":"8.3.2","webpack":"5.65.0"},"dependencies":{"@aws-sdk/client-s3":"3.47.0","@aws-sdk/client-sqs":"3.47.0","@sls-next/aws-common":"3.7.0-alpha.5","@sls-next/core":"3.7.0-alpha.5","@vercel/nft":"0.17.3","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"669f59088fb9d107c3843dd13b692eea1a1229e4","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.5","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-2TZk/Ao99T4wieb8yKrK+TGd57wOJUe/UzSzgO3udMPW6Nqx2SuW1SFjBNuWtvHlcYtMggro2tIAb3r7RhzuXw==","shasum":"630b22f407c3f0c2d2aeb75f11e2b29e5db47851","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.5.tgz","fileCount":59,"unpackedSize":11548363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6Qo6CRA9TVsSAnZWagAAw7EP/RffV0w1p49r5JgUqqpC\n2jTJppt5bF6nXKh9ltOohtQzWdiHPPfdZwBKcPnQC0Iqr761itP5/xITae9h\nGHtAr1huA3aSn158AvlT9ov3yv/xPjl14PDBThZ11NZrWeQ1GrviGXoGmU8r\nHrdO0vcaC7ZTz/V6+15E8IBKXOoZPcV6kgxlqxTjTBwNHaCH1J00xlLJG/cf\n0jBz6GyBC1cXy2M0PrvCVqW1PningaV0n1LafOBJ86AGNC2PQQVscWvCYrYV\n6WmPReB7uUkyoua3etP+nIeUocZQs/9JQ223SPzrDu0b0pMXBw2kpxLcTLQc\n9pnbiF6Ak7gwOg9h7IJ8Qf/4QpK9PghWWJ+enc70xYE1IgE9KGGReHBGGKBT\nbHyigphd/8AkHQfnIvUTB72/7u1xMdbj3I5xRGnJLNMDHsBYVYQVNfkCeSLi\nOuKsNKAUgqmIvRwN11vstDCH3JELHCOUZcJRXDxw+orPkl86ToQ7xXT+nf4z\nkAxIvmxQdzgiYLPlfUEagDoFISDqiaDwnC5aH5PulfjyHcP+QzIFLTTvG5t/\nnaCSsQx3MN7uk1orzySJUNu5h9AKhRYGaY+dZNLLoqQKgCZZaIIpbwRmE8sc\nTTk0NnFOMhsbxuSfRwfwLraBRu5n39YzQ2y/n3MKUmYJj1Eod1RYsCCKY31f\nd8Nv\r\n=vj1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXbd+uq93lEF7ugYFJ8i/Uwd4Wvpgo3TPyW4TapfxUMAIgVRN+DZtbFCybIE9NQuxe/JHTuOiO+7ThZ0Hs0iOSZ9o="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.5_1642662457868_0.1338490747377088"},"_hasShrinkwrap":false},"3.7.0-alpha.6":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.6","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.12","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.12","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.38","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.0","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.6","@sls-next/core":"3.7.0-alpha.6","@vercel/nft":"0.17.4","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"07643469c27f0cd71f723ff8b6e448e7704426aa","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.6","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-7Rj9zRlZFNsLn/88INFAYCFj/YN4w7r4gbjbA1BUhscerwqcqbF3g8jewqy7b1UmLZZEx8EKSwN5aFxwvh/KTA==","shasum":"f68bea370a4dac4ba1300ce943784a87fd9fd01a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.6.tgz","fileCount":59,"unpackedSize":11550464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8Ip7CRA9TVsSAnZWagAAcXYP+wa43J1y2wof5J+iT+2e\nKJ5Gio4sHSwMV4bk4Ujj1eMNlpy4BNkbaqBGOLMBhD+6kKW6kzOiJoZNnOGN\nA9/pOa1IIoiRw5bZejJr/7aS1PgjOY9LOopTY0RbXF1HhzJ/1Urvl0qH5f2G\ndjo597asSwQ/l0dcyD/4OqY8CRD9UhHkmUy3N+OYdfEcTx2iEPwihJqFCtYk\nTddlXCkN8cvbKj4WCNPfv5EqUX2og3eydaWy0ESXueYpZlOZLICFcCAGalkk\nvgpaGO14iEnr+98sQjN3JXxZxCwxvPcGIPdxn5GiZXAJYLi1RS7vx1uAtcJO\na2QaVpV8qOqU1JyTmwKmg9MTgAYW7X+jeXQBq+Nbfjn8OgSDoQCEktA5UoiS\nWq9qpKG1K4h1N72unyGrVqlC8sNqIAWD+cHwQHanDzhKN+WWxtnGVd5WMN0c\nANwIoXXSISASIGrPqsb9kD6cFH9YQImAyYf0QtnMJuHXcVImYMi1MNSKEX1X\nkXGSqEuBunniN50XMkTVQgRk976fvfYd5NtlNIOExae7vM9QiFslzGncj40O\nFFq0+gZF3rsE3GQq+ZCzygF8CqZZB1utiIQQb5efJJoct1GqiQJeK3I8M5AB\nBWxph1iorCL2GX9fnKZnHjPoVbl+s4vJE5p4VjE345ftZQbhylh63PQLm4TC\nVK5U\r\n=k1Xj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvWZSCl+nbpDFXEzlXF29PIBKFctOgm7Y0IZ7bgE1TfAiEA3KzZunbDpRN5MndfZV3LthNWy5wQ7DbRgUoWI3gKPRw="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.6_1643154043280_0.6014496603670296"},"_hasShrinkwrap":false},"3.7.0-alpha.7":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.7","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.12","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.12","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.38","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"12.0.7","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.7","@sls-next/core":"3.7.0-alpha.7","@vercel/nft":"0.17.4","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"9facd1527af107b6e56f096080976d44a0206f3b","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.7","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-KSwP7WHKS444s9rjZ7ZKAhOEo791DNnBRSf7XbcK90o66X6fbn/9rnpTZKj0M74/h6sPmZDHDT8Bfq0P+cqjng==","shasum":"df62328ae24cdb9a7f1d53d1bb3f3200ff5615c5","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.7.tgz","fileCount":65,"unpackedSize":11557143,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8lg0CRA9TVsSAnZWagAAK8MP/3dIrl72QtJ01DMWpKbr\nFBhxHqgIoojSPCVlVsBwcI8+pBMPasJSOVTBdYLIYU4B+sP/33f2GDBsIQ5D\n0+I+NnXKdfFNaiDsCsCdWsiw32jPyxNATq8z0sYj2lYHySt7RgYf2bPGoMfv\nI7/cqKqqa4VY6IKMR0DbqAUMCkdS8dDdqrkfn9610F643vBcQ7M/9KEDBIoI\nnz9oa9XNxQyYaxTaF/Kfp3u39EJYZ6WZUHnx9y9OpQqDUskrNn77UMg/W5rk\n+sFwv7Hef4y+fbXCk2HWRCyxYBy/asV1slO8IzTTcsrkHc75IZLvEHOL9EJY\nw7BXhP91pGipb4YtmMbUm4+ZA//0EI7Nc6IdhXUWHJWWepD+9An8KbS3aRoK\nNB85sOamhcFNTbbp5RJEYOyf3+fM2xhmqI/+yP9eZNAsbzCNoYAR06OSWpiw\nfJ7HLBNe3q+oj07qekFjTOqaLm6j/LH5rMuB4sPWaSsI2eSgZeBy2jNVHJbs\nrlwPUKZ7mbP8D/a/SFzQS6KJbnxLrDKyPYyeCeRnsbB9A7wb+rxWgiI7iXug\ndjBTKj6wqruKzdXkcM4tO4yRBlMspMgNKBwHHNihBlJGuQrPL4vwOAoLb9D7\npB6xbxKb24uYaoCrvj39AKX4YpJKM4OiE2WPt+u1Yo6ecK94JCyuOXwEvjmp\nusV8\r\n=igC8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHeXlPuONEk/mX5rEjEPREdIZB3iSwcj5iEyzA5oPws8AiEAgcdrLfbcEJjUIyIQI15DTMQJwVGUdoej7sQJrYKEeHw="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.7_1643272243811_0.34743655954504016"},"_hasShrinkwrap":false},"3.7.0-alpha.8":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.8","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.12","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.12","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.38","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.1","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.8","@sls-next/core":"3.7.0-alpha.8","@vercel/nft":"0.17.4","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"d009f46df7d67f31b2195912dd599feda22f541a","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.8","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-jn2agD3WEnn4+CFTFGzqH2pIvoGVw5Oe5VgH65f8aErV6x7NUzgZvyZLsixBE3fs+SipgSJBMUjSRFBJn+GgfQ==","shasum":"4608cc9127340800fea9f2cb5880e80d5a2d6c38","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.8.tgz","fileCount":59,"unpackedSize":11550708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+g8QCRA9TVsSAnZWagAAE9UP/Rky+Akn9saMlzuxWpJe\nOc20jSIA0e0WJhsNcZ4ZcX5/zsOoqncgtJFJNeLCmkUkBj/ut23MjIJGza+o\ngn0ji4xaQeB1uepyKAJw9DEqbYuGV0nIP7xPrXHt+7iwIycCTiqWml8JJHEU\nI4Wpjtvcd4v2gvqRyvWrez5HHwNHKQjBOpC9Q6XsKeaqhJZX5sjNGfvl5BVg\np7pTPfWW2qUvXTdwrhNNHmAKs+wmPrC+SZHhhmnk9eT/SUG3Dc7KyMXG4jBm\n85Oljw94Ho2zdinhvoCmjueL2pLuFnVeE+xd1u2qzC0FAuBWoV+gWRjref7w\nDVTLOag4UmyALQEChCfjv//JJujYvg9vWeQkFeD+HuhKgudjYzL6Ugc19hFZ\nadcHyK0U+Vh7x4bVkbLL5BaVcMaxUbT2Ep7KCM6D+5FO/n6oiD65cSHiCC+i\nmJXRrdlAtupC3WAkElsWzbVHmDWkKCDaJBjX6uB3Z6B6IIHnfqUGYdNR6AJr\n2R98Pkn53LonPhTz+iL0zpOak5GIYKp5h6nFiF8+0owT4nEI7Edr2+d4wiE2\nop3OL4vXeSDKxcZNzQOgef0RL8bpnsX7xjFyiEDRl+IL+f/fwmpfWzTGKbiF\n5w3c+undTbDO20DBL78kruBCR8axdF+w55ozlDAhU+XdFAj5edieiRsIKZC1\nWsR9\r\n=nfSN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdtzkZpL2PU0aaAUuQS/Wuf4cNXIXhJ6gzmP87ipUCwgIhAN8PTsgsXIp+ndJsVPstd012y7/Q82dlcN06mrl+M5iC"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.8_1643777808283_0.6235576985250522"},"_hasShrinkwrap":false},"3.7.0-alpha.9":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.9","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.16.12","@babel/eslint-parser":"7.16.5","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.16","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.9","@sls-next/core":"3.7.0-alpha.9","@vercel/nft":"0.17.4","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"426b970a4a1e348d71f4d32181941b3228676f02","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.9","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-e+eIetd0Y0sa0L+A+UyUg16QIhLqvD/rNGfy0Gg3HDTo2KzuDluxY8dT/gP8OUoU81DI7E5yanYRVA9XAFw9ig==","shasum":"4426a1c6c271522d3a2703b246b593e9ae0f8169","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.9.tgz","fileCount":59,"unpackedSize":11551256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD2OyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRYQ/9Ea1dPZOjbakAToOrIDnK0RS939yq7NBFuu2CO0fpRwERsuU9\r\nuh8yahG+V7Ga6dFFiivVl+AGfkZWS9qk2mp+mpT7CVL7WCLo7EsKwpxViDMP\r\nb/zMQzoQsnkPxpw7V7y372Mn1yqXZyM7DLa5GYVbNy0YbZVX0SasAv477Qpd\r\nJDp+sED1vtXTK9ggiKnWEtERNiqnLD3jcM9W16cYFRGDlHX4dzJVtXN/uvZ4\r\nCCXf6xI3JnWKrrnkS8CyQH5xd1RNIT4QW3IKvhoWAAEUACuM8sjoytMeIrNs\r\n/icwVS6PwfQ0AvOpXSBDxfGWaKTgAccdl1jdETcIJGP9KsuHPMiqn0xK1Upy\r\ngiyxkTqb1rHwyszeJ9oMy+p67Wws02Urp1D28pjsp6i+Iuka6tEjUJY1vYJu\r\nR+D299frrsQ7RnRux0BMEhYz+beBuf1LyzyaSvcX5qislmrZYyZNuuRtAz+p\r\n8Ed8jOe//TQo+rNDkG2j+hrRYUM6Jg0HUWiM4x21ieKf8GJCElOM1Pt8WNlV\r\nxdzUUSIjijTckBNBGakx1Qoppb28VEr/NT5trU/2R9Q3S66qDhrXmveWQ6m3\r\npCAhlZy5Jv9iTilSuDB8qV122PGkFVLi9ezFZOz+rl/nlifydJQLJTdNNpkQ\r\nwjQWdkFX7Vj1gJq0y8ZjQzjKeeUSZcGD7Bg=\r\n=y95x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVQupAVfkIdZaEFZO8FfE0cNX66yh55MJWf5LaeV40HgIgZgvRp9pauATipbKqPL7cy77e7NHp0KyMeQWNyJC9xzQ="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.9_1645175730441_0.634989262076344"},"_hasShrinkwrap":false},"3.7.0-alpha.10":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.10","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.17.5","@babel/eslint-parser":"7.17.0","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.19","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.10","@sls-next/core":"3.7.0-alpha.10","@vercel/nft":"0.17.5","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"bc59012e62e59eea55b2123416d2a380d0dbd671","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.10","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-HVCNe6IdjZWYuGa3YDuQL48YFsMIoiQtD+g5LyA7uNwLKraNndXTK9UGNZLXIXsaRlz2+T+LKlOSwLwdX/IMhw==","shasum":"f66f8a548d2c771f334ae627532e60179b3f896a","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.10.tgz","fileCount":59,"unpackedSize":11552438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFd06ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1sRAAmfBo83DBvk3OaGzK9Lp5KHIVWGlJPa9oePou73HWPMKFcKM/\r\ndqx7ou1NwKABGPP1GI+v+voyE+8TJK9fH2mYoUGq7SMsEG+wYpHde/6ReYc7\r\naFHGiQFnLHj0bq+9r0PGMUbK433a7j1MsP2EsCqNG5Wl7UQxPUCGTkgVNEYH\r\n0tJ+VpfDVrfBPWCw4F+ayhjaQxjLWKcSQQU2ZmGO/rX5NI/rJaYobybL0ap+\r\nZEfTt9VGVLI1uFvmlmiQPbulmcQOxuGsh8YBl2XrcxL7kcWJt0YBE28VSQnl\r\nZyeSTReeKJsRYjgbMLXqxGE9YncMvxm1liteRlYtFmBmwjOVH2o4e+xWHStV\r\nAyscxLCBvVPfY4gCwvjB8oIC+u/3nhlQZ1ryPpGhs3nWgMJ+XGNpdqTBxelb\r\nyTUOXBG7upQ6qFXp1y2ZqDFCVe1ytKms+Xp8iTifqb2UOlUI5wurIoAgs+u3\r\nBhigd1kcfV340GLoB6z8By53av1W4aBVBjpdMxh/pefCx+Xfg3hAZaHxbM6q\r\nf5HGA4HfhdeIkNyxmDOLYibXqPNE7ogY4s2JMGT18abZS7t6WnXJTlEp+7jc\r\nSn+CtJClnHDENB8Hv2lFxImqap2osU0ZiBHWxoEfPr8ShFj/5crnxGLz83ha\r\n8TGZqlortJdUgceGGb3/CV3g63jWOKnLFMg=\r\n=l6RK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4JpSImt8jkVwR1gMkLvP05+nswPM8pOj431w5fMnO8AIgMru0UVWlM+EUOAo+sIQVFNM+s2znmIU6j/oT6JMRChs="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.10_1645600058388_0.4153157621077619"},"_hasShrinkwrap":false},"3.7.0-alpha.11":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.11","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.17.5","@babel/eslint-parser":"7.17.0","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.19","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.48.0","@aws-sdk/client-sqs":"3.48.0","@sls-next/aws-common":"3.7.0-alpha.11","@sls-next/core":"3.7.0-alpha.11","@vercel/nft":"0.17.5","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"416adf11463125c0577aed98952433f5d3cc76e7","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.11","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-jxR0wVMkldv831491WFgD+8F4zmOmlKk8UwEfIm2EmFvzWtQ0ss390LiF6CbNTBwkxW+p9U9zqIcTpZIwzWu+w==","shasum":"4e0099eb47286effd8f3aa9251f79ef00f631910","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.11.tgz","fileCount":59,"unpackedSize":11553515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKU7qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPzQ/9ErsL8TUEU8jx5cMGTk/SZOlEhFkjiZZm14houlA8JI+3bJnW\r\nXAlEPpxV/VTIjxAZXcsc36w3OQz2kbfnwO8L+AzWZhlS37CNTxTTfMtg1C76\r\nc1+68snVHGSuT5FHLM6t+hrVO5zXousLtk55HJYiobxtSAodQKpBioOoTEIN\r\ndgoy42QiYJKEBRb94ZMUirjIcm87YQ8KBCKs+Xclc4GgDeyVlaCoGUH1SDVC\r\n4LPTTWzp9Phk5gl1W04973av9AbPSymcGZifSL6Q05bJax9B5t37bSAwOb3J\r\nVT+J7E4EMAAOXb8W9G+jAGYxC+8uHcKRmM+90hg+45lrMcNkyMK/vkGYfmmQ\r\nFEeiqTtyGjE5NgR3Kc6iBWTF4vf3Y0t4GyCEAiib85CljAtAmK2BzyfXSAt+\r\nfj8ql9wkplT1oOcr4UcgLVChs4S104oQMNT5JudRQgKglD5+2ogB+Q8dwM17\r\nfwW0cJkhlELUpdJ8RTh8F9lQmZH2rJwu7TLWwPToOvsliA/PxUJDXrw/ANB/\r\nexXi3VDnMljVLyBkQ8FD4+tBMeKAw6IZyJUFXpRwT8sta3hqIlpU0gcV3sQd\r\ny8goPaybvvUX9ASbmqO4cKcZ+pcA6sMXQvCkVWF0Y0kAefj5JpMWSCgCcSuN\r\no13UpbErU26HuY/OtRYfdRdbFnTJbsky2As=\r\n=GNJ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5lWaS4MSH4VY7cfc+oYNq2CzoJ8ZwEH4FLDtM97YgJwIgNdb3gxipuePWR9+V+DcJstHvzrx8QKnY80MhaZhHkww="}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.11_1646874346011_0.0015541258739195651"},"_hasShrinkwrap":false},"3.7.0-alpha.12":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0-alpha.12","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.17.5","@babel/eslint-parser":"7.17.0","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0-alpha.6","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.19","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.54.0","@aws-sdk/client-sqs":"3.54.0","@sls-next/aws-common":"3.7.0-alpha.12","@sls-next/core":"3.7.0-alpha.12","@vercel/nft":"0.17.5","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e079765c29b8582db0fbbfa5ed6b053b99f04ace","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.7.0-alpha.12","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-ZOy7hrLDMcz3SuCExgOGJHlH3Z3+ejIDoMUl2vFL1gB/Op8dMzDpWhtpR6NXFPQQGRK2a+2tUdzan6BIAZzWVg==","shasum":"b238032c13bf599499ac1c58a988fce6aee3e79e","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0-alpha.12.tgz","fileCount":59,"unpackedSize":11946169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMNt7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc+g/+L+K6a7FDyeYmRoIb8T9pFzcZXHBvtxHfKj9BxDI624SZZauV\r\n/0Cf9WeGKd729ub39xFkyQq9E90BBEpR77lbcucTnmzVg8Bj4BwAejJHSe3W\r\nHxOzC6s6+39RsJ2eVZEsIypHTLVWgSy+b64X+z0RznTAq8qQY5hDGU+yMmpl\r\nt+3r+FYDGxh3Vu4O36Q7ehei5i/fZEUIjAddT6PBfUaKe5pialG9t0nWNlCb\r\nYScY1WcBMShvwloTdouZWtOBeTEK5F7ADLBimNKnbt4wt14hyfG+3aUJg+r+\r\n+T5jaxXTk4ryF/wg1vuGn02bslPoV9TZLiynDCMG/elZo2oMpIlWCBDXsgM5\r\nIOEWFMybO2xKV2PoOq8R3o0gQyej51nNK0l4wNwFbMmffGTJSvyU7otz+Qfz\r\nSAvAmGTntZUS/5nPkC+ga+RnXxno6cOVveFYsDjSl2vWqZQ0nO2BcBXMoCvV\r\n/FoL62P9eIwn4Boad+azu9AUhfNGHVSyZ/YKxbMYy0ltyexMXz/XJX5pcexH\r\niKFBkYUWGm1PkrMJtR5bNfgsiT/3+9o1HFsjzd7TRJRG1yNBl3i2xcyh2XTF\r\nIDDzDoUuP3Qs/8oM0UBzO+U/joKkxBZITTr4ShfUKgZTjgkySM+WmqxLz1Oc\r\nLb3zAH56LazeRDb+eOPx1+DMGgOWMj8wbv8=\r\n=9NOP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjov8ziczijFCcWUJpZPZhjzf5JM2+knnzQu2xxjdUBAIhAJJ/lwy/dczdbxtbXmLZReHCSS0u12rS0OGi/CsulnjM"}]},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0-alpha.12_1647369083146_0.3930334885863369"},"_hasShrinkwrap":false},"3.7.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.7.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.17.5","@babel/eslint-parser":"7.17.0","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.19","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.54.0","@aws-sdk/client-sqs":"3.54.0","@sls-next/aws-common":"3.7.0","@sls-next/core":"3.7.0","@vercel/nft":"0.17.5","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e7af51980079a59fbb9ecc3d35c878c62b919fc7","_id":"@sls-next/lambda-at-edge@3.7.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-7eTqq1baZEuvEhexDchsP3QdOqPYaW123c7TupYB60Rs31KQ12xXvpzgn+mTMuFVIOQUDY5y8EKsuzYGRrQfcw==","shasum":"096b8c5482936e7571131fbe821ced617e8f16bf","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.7.0.tgz","fileCount":59,"unpackedSize":11946134,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa9ttbLb6mMrim94YY8wWvTsXyAfELqZ46m8C5VVt54gIgeNJwvdkFKbbc8Zn1dxsn0+qZoElQSL+7+CJpqVPQf3s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSW1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYRQ//aM0yijemevmJewJjtIaMSpq7mycgrCMJVFbmqZffB3ORTqgp\r\nX1qNVyc0wgd3FGDkVDEtcl5GxScPuPGYdXeBS1MPvGPPQCa0pW5ors6WUbo7\r\ndVae56Fvmnpx10WTQuKNouQh7gP00LcUSu3+y2ADzNd/cNSv4dsd5NuuW8W9\r\nzbQSjOrNXnKmPMgFsbSK4XciKACd+sOODBKfl+YHfFOMkKrKT/2foVOAGxWd\r\n3OXtqDLE8x8tIWfs7OupGL7WemlP1CsiIViDuiOd5EWq47zp/te064IXymSD\r\nsLf3ya92aDK2ShauEfFnGTZquD1oCscydr3f+E02jjcQ+r5maihB4ST6D99r\r\nXhCJ64VqnhzP9WIN70QyqPOtf++eE3F09g7dqAhJWy9HxvQloU/Or6v0BGK6\r\nEr1/ttnfKLKjn+dfj9PsI+diYH6aY7sqGN85j8YnyUhfJvDJ8zYsB28ii5xo\r\n4R06IVSipUyB5PUP1PHacQ0aqkGQYg+gz7ckj5tkXYNJfWHuFtUKZWLkDFKT\r\nc7NV0TgKX46TPIe52fimPaoc0++oYPeYInTEszWly40w63rpXUzlzAUtjDJJ\r\nOIfUH3pbzPeCV+6CsrOKyCN4BhQ4bN1Tf3sql8xR3OQvU9BYFWxg1dZGGx49\r\njv6UaeW0zzEwXwpGsXi3pvG13+Zd1JSLvGo=\r\n=mXC3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.7.0_1648698804854_0.5400181112318745"},"_hasShrinkwrap":false},"3.8.0-alpha.0":{"name":"@sls-next/lambda-at-edge","publishConfig":{"access":"public"},"version":"3.8.0-alpha.0","description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","main":"dist/index.js","types":"dist/index.d.ts","bin":{"build-lambda-at-edge":"dist/command.js"},"scripts":{"prepack":"yarn clean && yarn build","clean":"yarn rimraf dist","build-test-manifests":"ts-node scripts/build-test-manifests.ts","build":"tsc -p tsconfig.build.json && rollup --config","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"keywords":["AWS","Lambda@Edge","Next.js"],"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","devDependencies":{"@babel/core":"7.17.5","@babel/eslint-parser":"7.17.0","@babel/plugin-proposal-class-properties":"7.16.7","@babel/preset-env":"7.16.11","@babel/preset-react":"7.16.7","@babel/preset-typescript":"7.16.7","@jest/globals":"27.4.6","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@sls-next/next-aws-cloudfront":"3.7.0","@types/aws-lambda":"8.10.92","@types/fs-extra":"9.0.13","@types/jest":"27.4.0","@types/klaw":"3.0.3","@types/node":"17.0.19","@types/node-fetch":"2.5.12","@types/normalize-path":"3.0.0","@types/react":"17.0.39","@types/react-dom":"17.0.11","@types/sharp":"0.29.5","@types/uuid":"8.3.4","builtin-modules":"3.2.0","eslint":"8.7.0","fetch-mock-jest":"1.5.1","jest":"27.4.7","klaw":"4.0.1","next":"11.1.2","react":"17.0.2","react-dom":"17.0.2","rimraf":"3.0.2","rollup":"2.66.1","rollup-plugin-delete":"2.0.0","rollup-plugin-node-externals":"2.2.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.31.2","sharp":"0.28.3","ts-loader":"9.2.6","ts-node":"10.4.0","typescript":"4.5.5","uuid":"8.3.2","webpack":"5.67.0"},"dependencies":{"@aws-sdk/client-s3":"3.54.0","@aws-sdk/client-sqs":"3.54.0","@sls-next/aws-common":"3.8.0-alpha.0","@sls-next/core":"3.8.0-alpha.0","@vercel/nft":"0.17.5","execa":"5.1.1","fs-extra":"9.1.0","get-stream":"6.0.1","node-fetch":"2.6.5","normalize-path":"3.0.0"},"peerDependencies":{"builtin-modules":"3.2.0"},"gitHead":"e6367b585fb98608cd2e9327e2c8d4058ba73b00","readme":"# @sls-next/lambda-at-edge\n> Library to build and deploy Next.js apps for AWS Lambda@Edge\n\nThis library uses the handlers provided by `@sls-next/core` and wraps them with a Lambda@Edge/CloudFront-compatible layer.\n\n## Usage\n\n```ts\nconst path = require('path');\nconst { Builder } = require(\"@sls-next/lambda-at-edge\");\n\nconst nextConfigPath = '/path/to/my/nextapp';\nconst outputDir = path.join(nextConfigPath, \".serverless_nextjs\");\n\nconst builder = new Builder(\n  nextConfigPath,\n  outputDir,\n  {\n    cmd: './node_modules/.bin/next',\n    cwd: process.cwd(),\n    env: {},\n    args: ['build'],\n    minifyHandlers: true,\n    // it is recommended to let your CF distribution do the compression as per the docs - https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html\n    // however there have been issues in the past where CF doesn't compress lambda@edge responses, so we provide our own implementation in case is needed\n    enableHTTPCompression: false\n  }\n);\n\nawait builder.build()\n    .then(() => {\n      console.log(\"Application built successfully!\");\n    })\n    .catch((e) => {\n      console.log(\"Could not build app due the exception: \", e);\n      process.exit(1);\n    });\n```\n\nYou can configure more options regarding building process. Configurable inputs you can find in 'build.ts' file ('packages/libs/lambda-at-edge/src/build.ts'). If you want to see debug logs during building, use 'await builder.build(true)' instead.\nAfter running the above, the output directory will contain the Lambda@Edge handlers necessary to server side render at the edge.\n\n```\n/dir/to/my/next-app/.serverless_nextjs/\n\n > default-lambda\n   > manifest.json\n   > routes-manifest.json\n   > prerender-manifest.json\n   > pages/\n   > index.js # handler\n\n > api-lambda\n   > manifest.json\n   > routes-manifest.json\n   > pages/api/\n   > index.js # handler\n\n > image-lambda\n   > manifest.json\n   > routes-manifest.json\n   > images-manifest.json\n   > node_modules/...\n   > index.js # handler\n```\n\nThe handlers need to be attached to the `origin-request` trigger of CloudFront.\nThe `api-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `/api/*` requests.\nThe `image-lambda` edge function should be attached to a CloudFront behaviour that only triggers in the event of `_next/image*` requests.\n\nFor full usage docs, please refer to (TBA).\n\n## Architecture\nOnce built and packaged, the app consists of the following components:\n\n* `default-lambda` (v2): handles page and API requests.\n* `default-lambda` (v1): handles page requests only.\n* `api-lambda` (legacy v1 handlers only): handles API requests.\n* `regeneration-lambda`: handles regeneration requests used for ISR.\n* `image-lambda`: handles image optimization requests.\n* `assets`: all static assets used by your app.\n\n## Infrastructure\nYou will need the following infrastructure to deploy your app:\n\n* AWS Lambda@Edge\n* AWS CloudFront\n* AWS API Gateway\n* AWS S3 Bucket\n* AWS SQS Queue (if you are using ISR)\n* additional roles, permissions, etc.\n\n## Deployment\n\nCurrently, you will need to deploy via the Serverless Components deployer, `@sls-next/serverless-component`. We also provide a CDK construct at `@sls-next/nextjs-cdk-construct`.\n\nIf you'd like to write your own custom deployment logic, please see the CDK construct or legacy Serverless Components deployer to see an example of all the infrastructure you need to setup.\n\n## Limitations\n\n* Lambda@Edge limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html. Most notably, there is a 1 MB response size limit, which could especially affect static files.\n* CloudFront limitations apply: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\n* The image handler only serves image optimization requests. It cannot redirect, rewrite or add headers (yet).\n* In v1 handlers (legacy), the default, API and image handlers are separate, so you cannot rewrite from default routes -> image routes nor rewrite between default routes and API routes.\n* In v2 handlers, the default and image handlers are separate, so you cannot rewrite from default routes -> image routes.\n\n## Acknowledgements\n\nSpecial thanks for Daniel Conde Marin for the initial implementation.\n","readmeFilename":"README.md","_id":"@sls-next/lambda-at-edge@3.8.0-alpha.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (darwin)","dist":{"integrity":"sha512-gDlr5t4Z10en72NOAUz1fLRcf0BLb7N+pY4RgyqWwea/YaMqoLu3Az/liGa1YnoCH0dGWtxe80dVLqB5Yi854g==","shasum":"0cbd892ed59342962723fe05eb7e9087902d466d","tarball":"https://registry.npmjs.org/@sls-next/lambda-at-edge/-/lambda-at-edge-3.8.0-alpha.0.tgz","fileCount":59,"unpackedSize":11947348,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdcl6jzHXAgpu2/ZcYqr3EtbQnS3LrWU4EFiyLwSjuOwIgUvRSSviZGL4ORkh7WqY/wFQazFa6mYUxaRSXK0MNsiY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiX6QCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmou7hAAk/dxQ7yTpOvt+EnB7kRTSzs/ZFid7hpQB7mLirkLXdoWaN96\r\necqnLg8bMSTAlUdnBDiy24SdZpqkeR3UyQT33Bt+NzlCTXB0cD2+Ad5rFyMO\r\nw0xbp/HqgEZUFL//N+Gzssw/6jzveNHy8A+0Zdab74HaNAvdvET5Fh/kaNMf\r\np398u7yrKa0Qzcdpqhs8nNt1zcjx8wwZeggMjPrIsKAD4iK5Q1dIMsd3YwpG\r\npAfVL1lejeg6keZ7RtndOArDTTmWXf5rnwB1YH5nN625qLXElKBpB4CfqCt2\r\nLjWHcLRYDE657PJMTkzhSR3cSncpDx3v9fNErb1/hp/x5RbdnyA+DUhY6Myp\r\nG+bnQVh1KndbyC1KrAc0C8m8mFm9UlsvhjMJeBQRNC5UD6pQCwH2ysOacJJ+\r\nvm2kGDfOme++PPyd/xfApo3zrwTWyB5vjRxjZc4YWQ5X6YAUvxGft2iruMDE\r\n4NbFQrUQnE2VaZstv4rKfP+hYf3QnmrcjUgBu3sA4an+CNjp9WtAd1lx4Zof\r\n4oueOQAMk+sLIyzsW+ZQA6XPCEUQPkTaxh1Upu0g3lyjYYXdRgRgaDuZZfNa\r\n+80oOh9BfxDlOC1O022tFA/yCxWDi+beMX2FwrLzzUiAcT3m9NdCd6TkRzBz\r\n6LQt6jCQhA+rURdse6721iJQfYk6GOfmM2g=\r\n=Fm4y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"danielphang","email":"dphang12@gmail.com"},"directories":{},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lambda-at-edge_3.8.0-alpha.0_1650435074397_0.5574354737300808"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-23T22:20:33.616Z","1.1.0-alpha.2":"2020-04-23T22:20:36.310Z","modified":"2022-04-20T06:11:14.779Z","1.1.0":"2020-04-25T08:22:06.101Z","1.1.1-alpha.0":"2020-05-03T11:55:40.182Z","1.1.1":"2020-05-04T18:38:05.710Z","1.1.2-alpha.0":"2020-05-05T17:23:12.273Z","1.1.2-alpha.1":"2020-05-05T18:28:53.607Z","1.1.2":"2020-05-05T18:39:06.891Z","1.1.3":"2020-05-07T22:55:58.406Z","1.2.0-alpha.0":"2020-05-15T22:32:44.727Z","1.2.0-alpha.1":"2020-05-17T21:24:50.834Z","1.2.0-alpha.2":"2020-05-19T21:35:06.023Z","1.2.0-alpha.3":"2020-05-23T12:54:07.594Z","1.2.0-alpha.4":"2020-05-31T20:29:13.101Z","1.2.0-alpha.5":"2020-06-03T21:46:18.958Z","1.2.0":"2020-06-05T07:13:35.298Z","1.3.0":"2020-06-07T08:51:27.412Z","1.4.0-alpha.0":"2020-06-12T21:48:27.375Z","1.4.0":"2020-06-16T20:11:20.741Z","1.4.1-alpha.0":"2020-06-21T18:10:43.296Z","1.4.1-alpha.1":"2020-06-24T20:06:35.229Z","1.4.1-alpha.2":"2020-06-28T16:07:53.901Z","1.4.1-alpha.3":"2020-06-29T21:36:07.271Z","1.4.1-alpha.4":"2020-06-29T21:52:22.175Z","1.4.1-alpha.5":"2020-06-30T19:13:56.501Z","1.5.0-alpha.0":"2020-07-05T19:56:36.844Z","1.5.0":"2020-07-11T08:48:35.270Z","1.5.1":"2020-07-11T10:22:05.966Z","1.5.2-alpha.0":"2020-07-14T21:27:18.785Z","1.5.2-alpha.1":"2020-07-30T21:43:17.703Z","1.5.2":"2020-08-01T16:13:35.323Z","1.6.0-alpha.0":"2020-08-06T21:39:16.283Z","1.6.0-alpha.1":"2020-08-14T23:04:51.935Z","1.6.0-alpha.2":"2020-08-14T23:33:12.332Z","1.6.0-alpha.3":"2020-08-14T23:50:20.451Z","1.6.0-alpha.4":"2020-08-19T21:14:46.770Z","1.6.0-alpha.5":"2020-08-27T18:36:07.927Z","1.6.0-alpha.6":"2020-08-29T16:42:33.741Z","1.6.0-alpha.7":"2020-08-31T20:48:49.551Z","1.6.0-alpha.8":"2020-09-10T17:06:40.475Z","1.6.0-alpha.9":"2020-09-10T18:22:51.715Z","1.6.0-alpha.10":"2020-09-16T16:08:28.779Z","1.6.0-alpha.11":"2020-09-23T08:06:49.931Z","1.6.0":"2020-09-26T18:07:37.920Z","1.7.0-alpha.1":"2020-09-29T17:13:18.789Z","1.7.0-alpha.2":"2020-09-30T17:04:58.373Z","1.7.0-alpha.3":"2020-09-30T21:27:24.551Z","1.7.0-alpha.4":"2020-10-06T23:14:45.866Z","1.7.0-alpha.5":"2020-10-07T22:59:00.708Z","1.7.0-alpha.6":"2020-10-09T06:44:04.721Z","1.7.0-alpha.7":"2020-10-10T20:00:51.932Z","1.7.0-alpha.8":"2020-10-13T22:57:40.306Z","1.7.0-alpha.9":"2020-10-15T07:03:33.573Z","1.7.0-alpha.10":"2020-10-15T18:02:53.808Z","1.7.0-alpha.11":"2020-10-15T19:03:51.165Z","1.7.0-alpha.12":"2020-10-16T07:20:56.129Z","1.7.0-alpha.13":"2020-10-18T19:38:18.671Z","1.7.0-alpha.14":"2020-10-20T05:07:12.803Z","1.7.0-alpha.15":"2020-10-20T21:59:13.948Z","1.7.0-alpha.16":"2020-10-21T05:07:31.089Z","1.7.0-alpha.17":"2020-10-21T19:12:06.722Z","1.7.0-alpha.18":"2020-10-22T01:23:40.785Z","1.7.0-alpha.19":"2020-10-22T03:35:07.194Z","1.7.0-alpha.20":"2020-10-23T03:21:27.569Z","1.7.0-alpha.21":"2020-10-27T19:34:32.984Z","1.7.0-alpha.22":"2020-10-28T20:28:10.045Z","1.7.0-alpha.23":"2020-10-29T00:11:36.826Z","1.7.0":"2020-11-02T06:29:24.748Z","1.7.1-alpha.0":"2020-11-02T23:15:51.263Z","1.8.0-alpha.0":"2020-11-03T03:32:48.474Z","1.8.0-alpha.1":"2020-11-03T23:20:39.157Z","1.8.0-alpha.2":"2020-11-06T19:44:50.007Z","1.8.0-alpha.3":"2020-11-07T19:51:57.301Z","1.8.0-alpha.4":"2020-11-11T23:38:23.800Z","1.8.0-alpha.5":"2020-11-13T08:21:47.819Z","1.8.0-alpha.6":"2020-11-17T20:54:05.471Z","1.8.0-alpha.7":"2020-11-24T03:25:25.389Z","1.8.0-alpha.8":"2020-11-26T08:08:05.021Z","1.8.0-alpha.9":"2020-11-30T04:41:12.888Z","1.8.0-alpha.10":"2020-12-05T07:22:59.005Z","1.8.0-alpha.11":"2020-12-08T03:46:27.456Z","1.8.0-alpha.12":"2020-12-08T21:19:30.872Z","1.8.0-alpha.13":"2020-12-08T22:09:05.089Z","1.8.0-alpha.14":"2020-12-08T22:31:49.024Z","1.8.0-alpha.15":"2020-12-10T01:57:56.370Z","1.8.0-alpha.16":"2020-12-11T18:32:28.710Z","1.8.0-alpha.17":"2021-01-06T07:46:15.966Z","1.8.0-alpha.18":"2021-01-07T00:01:01.857Z","1.8.0-alpha.19":"2021-01-07T06:53:27.432Z","1.8.0-alpha.20":"2021-01-07T08:12:55.892Z","1.8.0-alpha.21":"2021-01-10T00:18:27.003Z","1.8.0-alpha.22":"2021-01-19T08:07:42.377Z","1.8.0-alpha.23":"2021-01-25T08:16:13.519Z","1.8.0-alpha.24":"2021-01-26T07:13:37.783Z","1.8.0-alpha.25":"2021-02-11T03:12:54.076Z","1.8.0-alpha.26":"2021-03-02T08:58:35.557Z","1.8.0-alpha.27":"2021-03-04T23:26:07.826Z","1.8.0-alpha.28":"2021-03-22T05:58:26.999Z","1.8.0-alpha.29":"2021-03-24T07:44:34.624Z","1.8.0-alpha.30":"2021-03-30T20:25:00.336Z","1.8.0-alpha.31":"2021-04-02T06:26:03.889Z","1.8.0-alpha.32":"2021-04-15T05:33:39.917Z","1.8.0-alpha.33":"2021-04-16T10:47:39.681Z","1.8.0-alpha.35":"2021-04-21T07:16:12.510Z","1.8.0-alpha.36":"2021-04-21T19:19:50.339Z","1.8.0-alpha.37":"2021-04-24T04:56:35.056Z","1.8.0-alpha.38":"2021-04-26T21:07:12.149Z","1.8.0-alpha.39":"2021-04-28T22:13:47.309Z","1.8.0-alpha.40":"2021-04-29T20:08:15.361Z","1.8.0-alpha.42":"2021-05-01T20:08:06.845Z","1.8.0-alpha.43":"2021-05-03T03:28:54.635Z","1.8.0":"2021-05-03T19:40:20.067Z","1.8.1-alpha.2":"2021-05-05T19:06:41.797Z","1.8.1-alpha.3":"2021-05-09T05:27:39.392Z","1.8.1-alpha.4":"2021-05-09T06:15:59.694Z","1.8.1-alpha.5":"2021-05-11T19:46:00.416Z","1.8.1-alpha.7":"2021-05-14T06:05:44.759Z","1.9.0-alpha.0":"2021-05-19T03:53:03.326Z","1.9.0-alpha.1":"2021-05-20T03:03:25.149Z","1.9.0-alpha.2":"2021-05-20T23:31:04.540Z","1.9.0-alpha.3":"2021-05-21T05:39:58.022Z","1.9.0-alpha.4":"2021-05-21T19:18:35.974Z","1.9.0-alpha.5":"2021-05-23T18:12:34.930Z","1.9.0-alpha.6":"2021-05-23T18:32:51.004Z","1.9.0-alpha.7":"2021-05-24T06:40:14.378Z","1.9.0-alpha.8":"2021-05-25T01:19:23.774Z","1.9.0-alpha.9":"2021-05-25T06:05:49.205Z","1.9.0-alpha.10":"2021-05-25T18:31:10.116Z","1.9.0-alpha.11":"2021-05-25T20:04:38.767Z","1.9.0-alpha.12":"2021-05-25T21:41:52.950Z","1.9.0-alpha.13":"2021-05-27T18:06:08.033Z","1.9.0-alpha.14":"2021-05-27T19:13:11.109Z","1.9.0-alpha.15":"2021-05-29T07:31:53.468Z","1.9.0-alpha.17":"2021-06-07T06:55:26.871Z","1.9.0-alpha.18":"2021-06-07T18:13:49.789Z","1.9.0-alpha.19":"2021-06-08T03:22:36.228Z","1.9.0-alpha.20":"2021-06-08T18:50:37.991Z","1.9.0-alpha.21":"2021-06-09T19:23:04.414Z","1.9.0-alpha.22":"2021-06-09T20:14:55.510Z","1.9.0-alpha.23":"2021-06-14T19:29:37.835Z","1.9.0-alpha.24":"2021-06-15T19:22:36.733Z","1.9.0-alpha.25":"2021-06-15T23:52:34.939Z","1.9.0-alpha.26":"2021-06-16T21:30:12.066Z","1.9.0-alpha.27":"2021-06-16T22:30:44.163Z","3.1.0-alpha.3":"2021-06-18T06:14:04.144Z","3.1.0-alpha.5":"2021-06-19T02:05:17.326Z","3.1.0-alpha.6":"2021-06-21T19:27:09.733Z","3.1.0-alpha.7":"2021-06-22T17:41:07.718Z","3.1.0-alpha.8":"2021-06-22T19:32:06.660Z","3.1.0-alpha.12":"2021-06-23T21:30:17.347Z","3.1.0-alpha.14":"2021-06-24T17:00:20.474Z","3.1.0-alpha.15":"2021-06-25T06:26:43.270Z","3.1.0-alpha.16":"2021-06-25T19:18:19.649Z","3.1.0":"2021-06-25T21:45:50.195Z","3.1.1-alpha.0":"2021-06-26T00:36:38.942Z","3.2.0-alpha.2":"2021-06-26T23:12:42.428Z","3.2.0-alpha.4":"2021-06-27T07:35:00.405Z","3.2.0-alpha.5":"2021-06-27T20:47:44.103Z","3.2.0-alpha.6":"2021-06-27T22:55:55.979Z","3.2.0-alpha.7":"2021-06-28T02:10:17.333Z","3.2.0-alpha.8":"2021-06-28T22:10:31.720Z","3.2.0-alpha.11":"2021-06-30T02:56:17.819Z","3.2.0-alpha.12":"2021-07-01T04:28:04.112Z","3.2.0-alpha.13":"2021-07-02T04:58:20.608Z","3.2.0-alpha.14":"2021-07-02T07:52:44.486Z","3.2.0-alpha.17":"2021-07-07T18:09:32.594Z","3.2.0-alpha.18":"2021-07-08T17:12:59.298Z","3.2.0-alpha.19":"2021-07-09T05:54:32.792Z","3.2.0-alpha.20":"2021-07-09T22:46:32.764Z","3.2.0-alpha.21":"2021-07-27T21:12:27.348Z","3.2.0-alpha.22":"2021-07-31T16:35:39.399Z","3.2.0-alpha.23":"2021-07-31T17:17:58.770Z","3.2.0-alpha.24":"2021-07-31T20:36:56.974Z","3.2.0-alpha.25":"2021-08-02T07:11:25.815Z","3.2.0-alpha.26":"2021-08-02T17:43:48.188Z","3.2.0-alpha.27":"2021-08-02T21:01:00.297Z","3.2.0":"2021-08-03T06:01:48.735Z","3.2.1-alpha.0":"2021-08-04T16:32:33.883Z","3.3.0-alpha.0":"2021-08-19T07:00:08.901Z","3.3.0-alpha.1":"2021-08-21T05:32:50.109Z","3.3.0-alpha.3":"2021-08-25T16:45:46.493Z","3.3.0-alpha.4":"2021-08-26T20:32:27.867Z","3.3.0-alpha.5":"2021-08-27T07:26:21.561Z","3.3.0-alpha.6":"2021-08-31T20:35:49.285Z","3.3.0":"2021-09-01T00:20:17.062Z","3.3.1-alpha.0":"2021-09-02T06:27:27.210Z","3.3.1-alpha.1":"2021-09-02T08:25:21.542Z","3.4.0-alpha.0":"2021-09-03T19:03:37.351Z","3.4.0-alpha.1":"2021-09-08T22:52:08.593Z","3.4.0-alpha.2":"2021-09-09T06:56:57.131Z","3.4.0-alpha.6":"2021-09-13T19:50:20.287Z","3.4.0-alpha.7":"2021-09-15T00:20:53.722Z","3.4.0-alpha.8":"2021-09-15T18:12:18.123Z","3.4.0-alpha.9":"2021-09-17T17:16:40.389Z","3.4.0-alpha.10":"2021-09-24T17:55:31.367Z","3.4.0-alpha.11":"2021-09-26T00:02:37.326Z","3.4.0-alpha.12":"2021-09-27T17:26:09.557Z","3.4.0":"2021-10-02T07:04:40.748Z","3.5.0-alpha.0":"2021-10-06T07:12:48.204Z","3.5.0-alpha.1":"2021-10-13T06:12:15.879Z","3.5.0-alpha.2":"2021-10-16T07:41:05.224Z","3.5.0-alpha.3":"2021-10-16T23:08:34.061Z","3.5.0-alpha.4":"2021-10-18T08:21:11.635Z","3.5.0-alpha.5":"2021-10-18T18:48:36.749Z","3.5.0-alpha.6":"2021-10-19T01:35:45.128Z","3.5.0-alpha.7":"2021-10-19T07:32:46.141Z","3.5.0-alpha.8":"2021-10-23T02:20:25.902Z","3.5.0-alpha.9":"2021-10-25T09:20:44.689Z","3.5.0-alpha.10":"2021-10-25T09:39:49.241Z","3.5.0-alpha.11":"2021-10-28T00:03:56.160Z","3.5.0":"2021-10-28T00:09:59.328Z","3.5.1":"2021-10-28T04:40:38.910Z","3.5.2":"2021-10-28T05:17:45.823Z","3.5.3-alpha.0":"2021-10-29T04:32:59.329Z","3.5.3-alpha.4":"2021-10-30T05:00:54.529Z","3.5.3-alpha.5":"2021-11-08T10:07:34.342Z","3.5.3-alpha.6":"2021-11-09T01:50:49.235Z","3.5.3":"2021-11-09T02:42:18.461Z","3.5.4-alpha.0":"2021-11-10T07:30:39.136Z","3.6.0-alpha.0":"2021-11-14T01:22:34.709Z","3.6.0":"2021-11-14T01:35:42.004Z","3.6.1-alpha.0":"2021-11-14T21:02:55.584Z","3.6.1-alpha.1":"2021-11-14T22:45:41.657Z","3.7.0-alpha.0":"2021-11-21T02:10:57.679Z","3.7.0-alpha.1":"2021-11-21T07:35:33.441Z","3.7.0-alpha.2":"2021-11-29T07:06:39.549Z","3.7.0-alpha.3":"2021-12-22T22:24:36.613Z","3.7.0-alpha.4":"2022-01-05T07:00:13.101Z","3.7.0-alpha.5":"2022-01-20T07:07:38.161Z","3.7.0-alpha.6":"2022-01-25T23:40:43.545Z","3.7.0-alpha.7":"2022-01-27T08:30:44.150Z","3.7.0-alpha.8":"2022-02-02T04:56:48.584Z","3.7.0-alpha.9":"2022-02-18T09:15:30.740Z","3.7.0-alpha.10":"2022-02-23T07:07:38.605Z","3.7.0-alpha.11":"2022-03-10T01:05:46.263Z","3.7.0-alpha.12":"2022-03-15T18:31:23.376Z","3.7.0":"2022-03-31T03:53:25.046Z","3.8.0-alpha.0":"2022-04-20T06:11:14.681Z"},"maintainers":[{"name":"danielconde","email":"danielconde9@gmail.com"},{"name":"danielphang","email":"dphang12@gmail.com"}],"description":"Provides handlers that can be used in CloudFront Lambda@Edge to deploy next.js applications to the edge","homepage":"https://github.com/serverless-nextjs/serverless-next.js#readme","keywords":["AWS","Lambda@Edge","Next.js"],"repository":{"type":"git","url":"git+https://github.com/serverless-nextjs/serverless-next.js.git","directory":"packages/libs/lambda-at-edge"},"author":{"name":"Daniel Conde Marin","email":"danielconde9@gmail.com"},"bugs":{"url":"https://github.com/serverless-nextjs/serverless-next.js/issues"},"license":"MIT","readme":"","readmeFilename":""}