Error: Request must be smaller than 69905067 bytes for the CreateFunction operation

Site: https://trusting-kalam-90e086.netlify.app

I am trying to upload a zipped function but getting Request must be smaller than 69905067 bytes for the CreateFunction operation. My functions directory is strapi-backend and it contains a zipped function index.zip. The size of index.zip is 53.6 MB less than 66.6 MB.

Sometimes the function uploads but sometimes it doesn’t.

Can you please help me out here?

Can you try removing “target: ‘experimental-serverless-trace’,” from next.config.js and adding “target: ‘serverless’” instead?

e-s-t doesn’t inline dependencies, and Netlify bundles dependencies in to the function instead. This might be what will bump up the Lambda size: Error enabling offline persistence with Firebase Web SDK and SSR · Issue #66 · netlify/next-on-netlify · GitHub

1 Like

I am not using Next.

Gotcha. In which base, it’ll likely be because the unpacked function and deps exceeds the Lambda limit, similarly to this & this.

1 Like