fix: stop bundling aws-cdk-lib into Lambdas and avoid caching cdk.out - #864
fix: stop bundling aws-cdk-lib into Lambdas and avoid caching cdk.out#864Ignacio Nistal (ignacionistal) wants to merge 2 commits into
Conversation
bc26a42 to
d029334
Compare
Summary
Correctness (2)blocker — packages/front-end/package.json
Suggestion: Don't forward CLI flags through blocker — packages/back-end/package.jsonSame root cause. The modified Suggestion: Same fix as front-end. Conventions (1)major — packages/shared-lib/src/app/utils/common.tsThe new Suggestion: Have Tests (1)major — packages/shared-lib/src/app/utils/common.tsNo test asserts the value of Suggestion: Add an assertion on Simplification (2)minor — .projenrc.tsThe Suggestion: Extract it to a single minor — packages/shared-lib/src/app/utils/common.ts
Suggestion: Declare it as an array and Breaking Changes (1)major — projenrc/nx.ts / nx.json
Suggestion: Force a fresh synth before every local back-end deploy (mirror front-end's PR Hygiene (1)minor — PRTitle and body have no ticket reference, breaking the repo's ticket-prefix title convention (e.g. Security: no findings. |
|
Bug: cached builds can no longer produce a deployable cdk.out This refactor removes Also, |
d029334 to
c5d5831
Compare
fix: stop bundling aws-cdk-lib into Lambdas and avoid caching cdk.out
Type of Change*
Description
Lambda response helpers were accidentally pulling aws-cdk-lib into every handler bundle (~40–50MB each), which bloated synth/deploy disk use and slowed builds. This also stops Nx from caching cdk.out and cleans it up after successful local deploys so those assets stop accumulating on developer machines.
Testing*
Tested deployment on local machine and confirmed bundle size got much smaller.
Impact
This impacts local dev deployment.
Checklist*