#Reached Image Transformation Limit on Vercel – Need Solution for Static Images

1 messages · Page 1 of 1 (latest)

faint dawn
#

Hi everyone! I’ve reached the image transformation limit on Vercel, and I’m looking for a solution. All my images are static and only need resizing, but it seems they are being transformed every time someone visits the site.

Would using Cloudflare Images for resizing help reduce the load on Vercel? Or would setting minimumCacheTTL: 2678400 (31 days) for caching work better since the images don’t change often?

keen daggerBOT
#

🔎 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)

steep void
#

Where are the images coming from ? So are they part of your public folder or are they stored on a network storage like S3?

faint dawn
#

They are stored in R2

mental roost
#

@faint dawn can you potentially just use images in your public folder?

#

I made something for that, purely due to vercel transformation limits

steep void
#

You might need to overwrite the default setting for cache header as Vercel does support the cache header from R2. If it is not set, it might be a very low default. So they get revalidated often. Most likely your problem here