Skip to content

[12.29.0] Adding phiki/phiki (~13 MB) via new debug page can break Vapor (Lambda) deploys #57117

@d-shannon

Description

@d-shannon

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

  1. Create a fresh Laravel 12.28.1 app and install dependencies.
  2. Check uncompressed size of vendor directory: well below Lambda's 250 MB cap.
  3. Upgrade to Laravel 12.29.0.
  4. Observe that phiki/phiki is installed (~13 MB uncompressed).
  5. Attempt to deploy to Vapor (non-Docker Lambda runtime).
  6. Deployment fails with error: "Function code combined with layers exceeds the maximum allowed size of 262144000 bytes."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions