Demo, all content is generated
Question

Vercel says I used 80% of Fast Origin Transfer, site has almost no visitors

Solved · 316 views · asked by yuki_builds · edited

Got a usage email from Vercel (Pro). Fast Origin Transfer at 80% and the month is half done. Analytics show like 300 visitors a day. It's a portfolio + small shop built with v0, product pages with big images and a few mp4 videos.

What even is Fast Origin Transfer, and why is it so high?

What I’ve tried

Looked at Usage tab, don't know how to read it. Compressed a couple of images.

Comment
Are the videos in /public or served through a route handler? rafa_dev · edited

2 answers

Marked as helpful by the asker
jonas_k · edited

Fast Origin Transfer is data moving between Vercel's CDN and your functions/origin, i.e. responses that aren't served straight from cache. With low traffic, the usual suspects:

  1. Uncached dynamic pages. If product pages read cookies/headers or use no-store, every hit goes to a function. Check the x-vercel-cache header in DevTools: MISS on every request = problem. Make them static/ISR (export const revalidate = 3600).
  2. Media through a function. Videos or images served via a route handler or proxied from somewhere else go through origin each time. Put videos on object storage (Supabase Storage, R2) or at minimum in /public so they're served from the CDN.
  3. Bots. 300 human visitors can hide thousands of crawler hits. Check Observability for top paths and user agents; turn on bot protection in the Firewall.

In the Usage tab, click into Fast Origin Transfer and group by path. Whatever's on top is your fix. Also set Spend Management so it notifies/pauses instead of billing you into surprise.

Comment
Top path is /api/media/[id]. v0 made a route that streams the videos from Supabase through Vercel. So every play = transfer. ok!! yuki_builds · edited
Yep, just link the Supabase public URL directly. It has its own CDN. rafa_dev · edited
oksana_k · edited

After you fix the video route, also check Image Optimization usage. Huge source images (5MB phone photos) through next/image add up. Resize before uploading.

Comment
ok most photos are 4000px. will resize yuki_builds · edited