Closed yyyanghj closed 1 month ago
related issue https://github.com/nuxt/content/issues/2422
Can anyone tell us which code actually affects this 1MB limit?
Is it just server/
folder or other back-end logic on pages too?
Hey there, I was having the same issue this morning. I had a look in .vercel/output/functions/__nitro.func/index.mjs having run nuxi build and I had about 10 SVG components that I had made into server components. Not sure why I did that tbh??? I must have been having a moment?? Anyways, I removed the server prefix and this reduce the output file for vercel_edge preset from 1.03MB to around 560kB. Possibly have a look at the components directory & unused CSS?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Environment
Darwin
v18.17.1
3.8.1
3.9.1
2.7.2
pnpm@8.10.5
-
srcDir
,appConfig
,modules
,nitro
,css
,pwa
,devtools
,colorMode
,content
@nuxtjs/tailwindcss@6.9.5
,@nuxtjs/color-mode@3.3.2
,@nuxt/content@2.8.2
,nuxt-icon@0.6.6
,@vite-pwa/nuxt@0.1.2
,@nuxt/devtools@1.0.2
-
Reproduction
https://github.com/yyyanghj/nuxt-3-7-4
Describe the bug
Vercel hobby plan has 1MB(gzip) limit size for the edge function. The minimal production build output size is 1.6+ MB(gzip).
2.8.3
1.66 MB gzip
2.8.2
516 kB gzip
Additional context
No response
Logs
No response