{"_id":"@aligent/cdk-feature-env-handlers","_rev":"12-2e690e1e4a9c17a42d1fa35c0d19dcce","name":"@aligent/cdk-feature-env-handlers","dist-tags":{"latest":"2.2.4"},"versions":{"2.0.0":{"name":"@aligent/cdk-feature-env-handlers","version":"2.0.0","license":"GPL-3.0-only","_id":"@aligent/cdk-feature-env-handlers@2.0.0","maintainers":[{"name":"torbjorn.vanheeswijck","email":"torbjorn.vanheeswijck@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"luke-denton-aligent","email":"luke.denton@aligent.com.au"},{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"dcb378c8df14f37b175e4f024e99a748199fe0b0","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.0.0.tgz","fileCount":8,"integrity":"sha512-Wi+u7fNYITJH6dc9NL31c58218TAGQYeQPr0nxgWuih5RIc2+ayXyZUQKUZZGPr/T1cRjmqdBsBpAItMp7IR5g==","signatures":[{"sig":"MEUCIQC0sn/5wxPhBDZAZKhaNo+yySRL2PFypmgl/7hLUjGVDAIgIwlYOmZPZ3cCfpKUhBj2Y0LIXQwECxTBFsDBnrn2Z4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":258514},"main":"index.js","types":"./index.d.ts","gitHead":"1dbe7004dcb6faa052ddfbda488612e6c853c593","scripts":{"test":"echo \"No test specified\" && exit 0","build":"tsc","watch":"tsc -w"},"_npmUser":{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},"repository":{"url":"git+https://github.com/aligent/aws-cdk-constructs.git","type":"git"},"_npmVersion":"8.19.4","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"16.20.2","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.122"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.0.0_1715314421442_0.5713618472658046","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@aligent/cdk-feature-env-handlers","version":"2.1.0","license":"GPL-3.0-only","_id":"@aligent/cdk-feature-env-handlers@2.1.0","maintainers":[{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},{"name":"sam.tyler","email":"sam.tyler@aligent.com.au"},{"name":"torbjorn.vanheeswijck","email":"torbjorn.vanheeswijck@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"4a9cb92fe147f99e68b5399dd08364c0cc989c50","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.1.0.tgz","fileCount":7,"integrity":"sha512-0KghXjzJrgJAxnSgazwf1vJt6iMM3vJ3KcbnQI5CUm8qy1zpr+5fBXws1Fl48ikY9h0uDb36L5+LOGXkw+wVqw==","signatures":[{"sig":"MEUCIHPIxUX0HUEIFPk73efXs8wWBeRQ8T1XQId5JCx8dVKjAiEA2MQxHEpJCc1ChDvZ75zf8jm929rbxHkfzQouaW3u9Io=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7246},"main":"index.js","type":"commonjs","types":"./index.d.ts","gitHead":"bed934b8a33cfc47c8bb1b49aa40fc2584f0e647","scripts":{"test":"echo \"No test specified\" && exit 0","build":"tsc","watch":"tsc -w"},"_npmUser":{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},"repository":{"url":"git+https://github.com/aligent/aws-cdk-constructs.git","type":"git"},"_npmVersion":"10.1.0","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"20.7.0","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.122"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.1.0_1739338260102_0.8854123310011421","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@aligent/cdk-feature-env-handlers","version":"2.2.0","license":"MIT","_id":"@aligent/cdk-feature-env-handlers@2.2.0","maintainers":[{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},{"name":"sam.tyler","email":"sam.tyler@aligent.com.au"},{"name":"torbjorn.vanheeswijck","email":"torbjorn.vanheeswijck@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"68398a2b2adc793553ac4d9f78dc345f4855109e","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.2.0.tgz","fileCount":12,"integrity":"sha512-C9ykzShbF2fEk6/L/l3rAVCLc8QJB4lp97WBsBEkKwflg3B+BHlYqhmwaP9T0U/RiLDKa/CQpuhYYkfjzLzU5A==","signatures":[{"sig":"MEUCIB+BqS8mzQkVdPSaB7b0c5v9yrg8pT5UEMeoqpziuRcjAiEAsiktSkQdsHNh/8LPLhLwtZKgoYSRDhXlwix4K89kJ6s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":260185},"main":"index.js","gitHead":"9c821cc1f04a0db5c95773edbf21bc6a9ae72d60","scripts":{"lint":"npx nx lint feature-env-handlers","test":"npx nx test feature-env-handlers","build":"tsc"},"_npmUser":{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},"repository":{"url":"git+https://github.com/aligent/aws-cdk-constructs.git","type":"git"},"_npmVersion":"10.9.2","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"22.14.0","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.150"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.2.0_1753416970935_0.5566989142851573","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"@aligent/cdk-feature-env-handlers","version":"2.2.1","license":"MIT","_id":"@aligent/cdk-feature-env-handlers@2.2.1","maintainers":[{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},{"name":"sam.tyler","email":"sam.tyler@aligent.com.au"},{"name":"torbjorn.vanheeswijck","email":"torbjorn.vanheeswijck@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"7b43614faa5cd24aa5d353bf6ef7bedd67d02187","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.2.1.tgz","fileCount":10,"integrity":"sha512-zPeBv70PHBnWaLXvxCBD6t7rr3PgP2ZnaSwK0GWpWLxLwyy0bGsgeuXyiRBTjiUPPLipM/X4cDkcagN9QNRqfw==","signatures":[{"sig":"MEYCIQDLMFPi7Ui27iAMe7vdq+HBaAxinjBUUF4svj6gFjYymgIhAL/To0eGIp4WZYTvhBADbgnlgHS/ewMSeJsCAAh8ESKQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263264},"main":"index.js","types":"./index.d.ts","gitHead":"14f7acea6e40a261c74d034aa6b4298baaf88604","scripts":{"lint":"npx nx lint feature-env-handlers","test":"npx nx test feature-env-handlers","build":"tsc"},"_npmUser":{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},"repository":{"url":"git+https://github.com/aligent/aws-cdk-constructs.git","type":"git"},"_npmVersion":"10.9.2","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"22.14.0","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.150"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.2.1_1754632790270_0.8510930035172861","host":"s3://npm-registry-packages-npm-production"}},"2.2.2":{"name":"@aligent/cdk-feature-env-handlers","version":"2.2.2","license":"MIT","_id":"@aligent/cdk-feature-env-handlers@2.2.2","maintainers":[{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},{"name":"sam.tyler","email":"sam.tyler@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"4423726ffc45107345dc5b28e237d0389738f483","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.2.2.tgz","fileCount":10,"integrity":"sha512-D6N87HXLbJjCgbp+lHjtxM7RsD40Hag0zAVhYWsPiW6c2GJqux4xrLLMkHDSILKjBZXcpKnGBgJG3SxUgO8CtQ==","signatures":[{"sig":"MEUCIQDuNqIQZD60dua7RKbhV1S2Z6bOtBfB/2sMxTGzNjfqugIgPqoE8r6w6w/5i5SgL44mBhJVks3eUN8X6IyovHUhIKk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263645},"main":"index.js","types":"./index.d.ts","gitHead":"f64ff8ca4f1d9e8a938bb734d8ed73a452dbae19","scripts":{"lint":"npx nx lint feature-env-handlers","test":"npx nx test feature-env-handlers","build":"tsc"},"_npmUser":{"name":"aligent-bot","email":"devops+npm@aligent.com.au"},"repository":{"url":"git+https://github.com/aligent/aws-cdk-constructs.git","type":"git"},"_npmVersion":"10.9.2","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"22.14.0","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.150"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.2.2_1768964560559_0.3355755001358176","host":"s3://npm-registry-packages-npm-production"}},"2.2.4":{"name":"@aligent/cdk-feature-env-handlers","version":"2.2.4","license":"MIT","_id":"@aligent/cdk-feature-env-handlers@2.2.4","maintainers":[{"name":"jarrod.swift","email":"jarrod.swift@aligent.com.au"},{"name":"aligent-danielvanderploeg","email":"daniel.vanderploeg@aligent.com.au"},{"name":"aligent-bot","email":"devops+npm@aligent.com.au"}],"homepage":"https://github.com/aligent/cdk-constructs/tree/main/packages/constructs/feature-env-handlers#readme","bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"dist":{"shasum":"e85ed61d639b80235255c7abe6ef7ef892b6bf8f","tarball":"https://registry.npmjs.org/@aligent/cdk-feature-env-handlers/-/cdk-feature-env-handlers-2.2.4.tgz","fileCount":10,"integrity":"sha512-FJpcWlHtfddisoltwYuGhYguxg1X3aCf8fOxQfLzLrcSWlzlLiDABV4Gp+sY+8tsa8SuW/BkdgnHatfcDc/JOQ==","signatures":[{"sig":"MEYCIQD4gNyVZmRd+nUZlW1SbhMS6GmjpsXNk+VduyWzYNZT/QIhAJEV9D/9XtWOIDtU8iwrbqtvTnejjp6FKdXQPQmasVY6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aligent%2fcdk-feature-env-handlers@2.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":264748},"main":"index.js","types":"./index.d.ts","gitHead":"8ae7d68bb79b57cf86b585d39d23dc60ce53713c","scripts":{"lint":"npx nx lint feature-env-handlers","test":"npx nx test feature-env-handlers","build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:30ad4a9e-b3f1-4e27-9564-5533e4a8bbf4"}},"repository":{"url":"git+https://github.com/aligent/cdk-constructs.git","type":"git"},"_npmVersion":"11.10.0","description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","directories":{},"_nodeVersion":"22.14.0","dependencies":{"source-map-support":"^0.5.21"},"_hasShrinkwrap":false,"devDependencies":{"@types/aws-lambda":"^8.10.150"},"_npmOperationalInternal":{"tmp":"tmp/cdk-feature-env-handlers_2.2.4_1770854252939_0.9078489594177683","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-05-10T04:13:41.309Z","modified":"2026-05-22T06:22:09.247Z","2.0.0":"2024-05-10T04:13:41.703Z","2.1.0":"2025-02-12T05:31:00.295Z","2.2.0":"2025-07-25T04:16:11.188Z","2.2.1":"2025-08-08T05:59:50.501Z","2.2.2":"2026-01-21T03:02:40.753Z","2.2.4":"2026-02-11T23:57:33.107Z"},"bugs":{"url":"https://github.com/aligent/cdk-constructs/issues"},"license":"MIT","homepage":"https://github.com/aligent/cdk-constructs/tree/main/packages/constructs/feature-env-handlers#readme","repository":{"url":"git+https://github.com/aligent/cdk-constructs.git","type":"git"},"description":"Cloudfront Lambda@Edge handlers to allow feature environments to function","maintainers":[{"email":"jarrod.swift@aligent.com.au","name":"jarrod.swift"},{"email":"devops+npm@aligent.com.au","name":"aligent-bot"},{"email":"tom.thorogood@aligent.com.au","name":"tom.thorogood"}],"readme":"# Feature Environment Lambda@Edge Handlers\n\n![TypeScript version](https://img.shields.io/github/package-json/dependency-version/aligent/cdk-constructs/dev/typescript?filename=packages/constructs/feature-env-handlers/package.json&color=red) ![AWS CDK version](https://img.shields.io/github/package-json/dependency-version/aligent/cdk-constructs/dev/aws-cdk?filename=packages/constructs/feature-env-handlers/package.json) ![NPM version](https://img.shields.io/npm/v/%40aligent%2Fcdk-feature-env-handlers?color=green)\n\nA collection of Lambda@Edge functions to handle routing in feature environments. \n\nFeature environments are temporary environments that are created on a pull request. They function almost the same as regular statically hosted environments, however, there are multiple frontends hosted in the same bucket. Therefore, we require a method to route to the correct sub-path depending on which subdomain the user has visited. \n\n# Common issues\n\nError config must be **disabled** for these functions to work. See the below diagram for the reasoning. \n\n![error config diagram](docs/error_config.png)\n","readmeFilename":"README.md"}