In my Nuxt 2 application, I'm attempting to use serverless functions with Firebase, but I am encountering an issue with the size limit. After adding some Firebase calls to my /api/index.js file, I received the following error:
The Serverless Function "index" is 50.75mb which exceeds the maximum size limit of 50mb.
I've been troubleshooting for some time and have removed as many third-party packages as possible without success. The size reduction has only been minimal. After researching and applying the suggestion from this comment (using @nuxtjs/vercel-builder@0.22.1), the size went down from 80mb to 50.75mb, but the problem still persists.
Does anyone have any advice on how to tackle this? It seems like a common issue, but I'm struggling to find a fix.
Hi,
In my Nuxt 2 application, I'm attempting to use serverless functions with Firebase, but I am encountering an issue with the size limit. After adding some Firebase calls to my /api/index.js file, I received the following error:
I've been troubleshooting for some time and have removed as many third-party packages as possible without success. The size reduction has only been minimal. After researching and applying the suggestion from this comment (using @nuxtjs/vercel-builder@0.22.1), the size went down from 80mb to 50.75mb, but the problem still persists.
Does anyone have any advice on how to tackle this? It seems like a common issue, but I'm struggling to find a fix.
api/index.js
store/index.js
store/bookings.js
vercel.json
package.json