Skip to content

Next 11 Serverless Functions Break - "Request be smaller than 69905067 bytes for the CreateFunction Operation" #454

Closed
@NoahBres

Description

@NoahBres

Describe the bug
I have a very small serverless function, 114 lines long with 2 relatively small packages, and it kills the netlify deploys after upgrading to Next 11. It was working fine on Next 10.

The function compiles to 63.9kb according to next build.

Screen Shot 2021-06-28 at 4 55 52 PM

However, upon deploy, this function throws the error "Request must be smaller than 69905067 bytes for the CreateFunction operation." This error seems to be related to AWS lambda functions setting a package size limit of 50mb. This function is definitely under that.

Screen Shot 2021-06-28 at 4 58 53 PM

To Reproduce

  1. Implement serverless function
  2. Deploy build

Versions

  • Next.js: 11.0.0

Here is our deploy log if helpful: https://gist.github.com/vishnuSriram/270e0a5a72122a91c1494fd4a6544524

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions