leerob / site

My site built with Next.js, Tailwind, and Vercel.
https://leerob.com
7.2k stars 1.39k forks source link

Edge Function "og" size is too big. #693

Closed briangflett closed 10 months ago

briangflett commented 10 months ago

First, many thanks for sharing your work. Very helpful to those of us that are learning!!

I have copied your repo, run setup to clean the data, and am trying to host the result in my Vercel hobby account. I am getting the following deployment error
"The Edge Function "og" size is 1.18 MB and your plan size limit is 1 MB"

Any suggestions for what I should remove?
Public Repo: https://github.com/briangflett/nptechadvisor Deployment: https://vercel.com/briangflett/nptechadvisor/21ojisBXpbrdRQM2hie1vbmZWh5a?filter=all

By the way, I had to add https://github.com/briangflett/nptechadvisor/blob/main/.npmrc to the root directory to get it to install with the canary version of Next.

leerob commented 10 months ago

You could remove the edge runtime from the dynamic OG image I'm using. You likely want to do that anyway, since it's using my OG background 😄

XahidEx commented 10 months ago

Use the latest next canary

briangflett commented 10 months ago

Thanks both. I'll try updating to the latest canary. How do I remove the edge runtime from the dynamic OG image?

briangflett commented 10 months ago

I removed the background image from the OG route and updated to the latest canary version of Next, and now I am able to host. Many thanks !!!

briangflett commented 10 months ago

I removed the background image from the OG route and updated to the latest canary version of Next, and now I am able to host. Many thanks !!!