Vercel Serverless Function Size Limit Exceeds
Unanswered
Wonj posted this in #help-forum
WonjOP
I am deploying my own website on Vercel.
The issue I am encountering is "Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size".
After seeing the deployment log, I found out that .next/cache/webpack is too large.
Serverless Function's page: academia/etc/[slug].js
Large Dependencies Uncompressed size Compressed size
.next/cache/webpack 280.39 MB 26.4 MB
.next/server/chunks 2.72 MB 880.11 KB
public/profile.jpg 607.41 KB 607.31 KB
node_modules/next/dist 1 MB 306.89 KB
public/favicon.png 192.12 KB 190.65 KB
package-lock.json 609.16 KB 144.41 KB
node_modules/react-dom/cjs 544.24 KB 138.2 KB
.next/server/app 589.5 KB 10.43 KB
All dependencies 289.45 MB 29.44 MB
Max serverless function size was exceeded for 10 functions
Created all serverless functions in: 11.839s
Collected static files (public/, static/, .next/static): 50.298ms
Build Completed in /vercel/output [59s]
Deploying outputs...
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
I'm wondering if there is a way to solve this problem.
I tried so many things but nothing worked.
You can see my source code if you wish to help me.
https://github.com/wonj1012/wonj.eth
I put too much time on this and it caused so much stress on me.
It will be so grateful if you can help me. Thank you!!
The issue I am encountering is "Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size".
After seeing the deployment log, I found out that .next/cache/webpack is too large.
Serverless Function's page: academia/etc/[slug].js
Large Dependencies Uncompressed size Compressed size
.next/cache/webpack 280.39 MB 26.4 MB
.next/server/chunks 2.72 MB 880.11 KB
public/profile.jpg 607.41 KB 607.31 KB
node_modules/next/dist 1 MB 306.89 KB
public/favicon.png 192.12 KB 190.65 KB
package-lock.json 609.16 KB 144.41 KB
node_modules/react-dom/cjs 544.24 KB 138.2 KB
.next/server/app 589.5 KB 10.43 KB
All dependencies 289.45 MB 29.44 MB
Max serverless function size was exceeded for 10 functions
Created all serverless functions in: 11.839s
Collected static files (public/, static/, .next/static): 50.298ms
Build Completed in /vercel/output [59s]
Deploying outputs...
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
I'm wondering if there is a way to solve this problem.
I tried so many things but nothing worked.
You can see my source code if you wish to help me.
https://github.com/wonj1012/wonj.eth
I put too much time on this and it caused so much stress on me.
It will be so grateful if you can help me. Thank you!!