vercel-builder: BREAKING: Since 0.22 update," Build Failed The Serverless Function "index" is 73.15mb which exceeds the maximum size limit of 50mb."
Since 0.22., the vercel builder does not work anymore. It errors with the message
Build Failed
The Serverless Function "index" is 73.15mb which exceeds the maximum size limit of 50mb.
Without me changing anything in the code. When I define an older version of vercel-builder manually in config:
{
"version": 2,
"builds": [
{
"src": "nuxt.config.js",
"use": "@nuxtjs/vercel-builder@0.21.3",
//...
}
]
}
it works like it should. Why is the 0.22 release breaking, and it’s not a major relase (going up to 1.x)? Since now all projects that haven’t defined a specific version of the vercel builder in config, will fail.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- https://github.com/nuxt/vercel-builder/issues/633 — committed to karngyan/karngyan.com.og by karngyan 3 years ago
- fix: revert `@vercel/build-utils` upgrade (hotfix) resolves nuxt/vercel-builder#633 — committed to greatuber/vercel-builder by HecateAkke 3 years ago
I’ve also get the same error during my recent deployment using vercel-builder 0.23.0. Setting the version 0.21.3 works for me. Thanks!
Hi, thanks for the tip. But even flagging the version in vercel.json:
“use”: “@nuxtjs/vercel-builder@0.21.3”
I still get the error:
Error: The Serverless Function “index” is 91.84mb which exceeds the maximum size limit of 50mb.
@madebyfabian Should be released in
0.22.1- thanks for catching this nasty little bug, which I’ll follow up on (as it came from a dependency).@madebyfabian No, that’s great - thank you.