Open TomiXRM opened 8 months ago
I have a error when I run build on vercel free plan.
It might happen at OGP Generation. How I can solve this problem.
Error: The Edge Function "api/social-image" size is 1.02 MB and your plan size limit is 1 MB. Learn More: https://vercel.link/edge-function-size
See more info here: https://nextjs.org/docs/messages/large-page-data -- Generating static pages (3/4) ✓ Generating static pages (4/4) Finalizing page optimization ... Collecting build traces ... Next.js Speed Insights is enabled for this production build. You'll receive a Real Experience Score computed by all of your visitors. Route (pages) Size First Load JS ┌ ● / (ISR: 10 Seconds) (193560 ms) 285 B 175 kB ├ /_app 0 B 125 kB ├ ● /[pageId] 292 B 175 kB ├ ○ /404 (411 ms) 1.66 kB 127 kB ├ λ /api/notion-page-info 0 B 125 kB ├ λ /api/search-notion 0 B 125 kB ├ ℇ /api/social-image 0 B 125 kB ├ λ /feed 243 B 125 kB ├ λ /robots.txt 247 B 125 kB └ λ /sitemap.xml 249 B 125 kB + First Load JS shared by all 141 kB ├ chunks/framework-92a422f151f77ddb.js 45.2 kB ├ chunks/main-436b35c631549ada.js 32 kB ├ chunks/pages/_app-db69a3bacbca03de.js 45.5 kB ├ css/623c00a2a2f28a98.css 15.4 kB └ other shared chunks (total) 2.5 kB ○ (Static) prerendered as static content ● (SSG) prerendered as static HTML (uses getStaticProps) (ISR) incremental static regeneration (uses revalidate in getStaticProps) λ (Dynamic) server-rendered on demand using Node.js ℇ (Edge Runtime) server-rendered on demand using the Edge Runtime Done in 216.18s. Traced Next.js server files in: 60.153ms Created all serverless functions in: 3.379s Collected static files (public/, static/, .next/static): 14.434ms Build Completed in /vercel/output [5m] Deploying outputs... Error: The Edge Function "api/social-image" size is 1.02 MB and your plan size limit is 1 MB. Learn More: https://vercel.link/edge-function-size
Thanks!
same issue here. Maybe by replacing the fonts stored in public/fonts/ the edge function size could be reduced? 🤔
public/fonts/
Description
I have a error when I run build on vercel free plan.
It might happen at OGP Generation. How I can solve this problem.
Thanks!