#A Serverless Function has exceeded the unzipped maximum size of 250 MB

43 messages · Page 1 of 1 (latest)

slender sable
#

I am currently experiencing issues with an application I am developing utilizing next.js and fastapi. I am hosting the api on heroku and the frontend on vercel. Since last night, deployment has been failing for the reason listed in the title and I am wondering what might be going on. I put pictures of my svg's that might be casuing this issue (I don't think so), and I also included my package.json which i dont think has any packages that would be too big. I have also included a picture of my app directory. I haven't tried to create any serverless functions purposefully

late canopyBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

slender sable
#

bump

#

@high compass here

high compass
#

where is the build logs.. ?

slender sable
#

sec

high compass
#

need to see the full logs

#

you can just build it locally

slender sable
#

sure sec

#

what i get when running next-build

high compass
#

oh wow its all... 0...

slender sable
#

what does that mean

#

lol

high compass
#

its just some display bug

slender sable
#

that means its an error?

#

ah ok

high compass
#

which makes debugging a bit harder

slender sable
#

what do you suggest I try?

#

Should I try to fix the display bug?

high compass
#

try updating Nextjs version

slender sable
#

so my login

#

is trolling?

#

and signup

#

cus they are basically empty right now

high compass
#

Try deploying it again

slender sable
#

Ok

#

Sec

#

@high compass samething

#

Are my dependecies to large?

#

spitting out the same numbers as the build above

high compass
#

Ur deps seems normal. If u have suspicion that the svg might causes issue, try exporting without them :"

#

Debugging 101

slender sable
#

do you think something like this would cause issues

#

i dont think it owuld but idk

high compass
#

Idts, its only 54kb

slender sable
#

experimental: {
outputFileTracingExcludes: {
'*': [
'node_modules/@swc/core-linux-x64-gnu',
'node_modules/@swc/core-linux-x64-musl',
'node_modules/@esbuild/linux-x64',
],
},
},

#

You think I need to do something like this?

plucky lantern
#

@slender sable Did you end up figuring the fix for this? I'm having a similar issue