-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Closed
Copy link
Labels
Description
Laravel Version
12.29.0
PHP Version
8.4
Database Driver & Version
No response
Description
After upgrading from Laravel 12.28.1 to 12.29.0, my uncompressed application size increased by ~13 MB. This caused my Vapor (Lambda runtime) deploy to fail because AWS Lambda enforces a 250 MB unzipped size limit (code + layers).
I traced the increase to the new local debug page introduced in 12.29.0. This page pulls in the phiki/phiki
package, which includes syntax highlighting grammars and themes. In my vendor
directory, phiki
alone takes ~13.2 MB uncompressed.
While this is not an issue for most deployments, on Vapor/Lambda environments the additional size is enough to push some applications over the AWS limit.
Steps To Reproduce
- Create a fresh Laravel 12.28.1 app and install dependencies.
- Check uncompressed size of
vendor
directory: well below Lambda's 250 MB cap. - Upgrade to Laravel 12.29.0.
- Observe that
phiki/phiki
is installed (~13 MB uncompressed). - Attempt to deploy to Vapor (non-Docker Lambda runtime).
- Deployment fails with error: "Function code combined with layers exceeds the maximum allowed size of 262144000 bytes."
AmirezaEb