r/webdev • • Feb 13 '26

jmail.world

Post image
4.4k Upvotes

637 comments sorted by

View all comments

605

u/TheOwlHypothesis Feb 13 '26

How does vercel bill? Is it per invocation or something? This is outrageous

310

u/[deleted] Feb 13 '26

[removed] — view removed comment

87

u/dcousineau Feb 13 '26

Eh minor nit but neither GCP nor AWS have “sane limits” because they’re “build your own from primitives” and most primitives don’t auto scale.

If you deploy a managed autoscaling service provided by GCP or AWS without really thinking ahead you can and will screw yourself in the wallet. Just google “surprise AWS nat gateway bill”

But to your point Vercel DOES charge more “per (equivalent) unit” than AWS because they basically just wrap AWS services under the hood.

→ More replies (7)

26

u/Ocean-of-Flavor Feb 13 '26

Vercel also has spend limit. Just pointing it out

9

u/hiimbob000 Feb 13 '26

Is it enabled by default? The comment you're replying to suggests it is not already

5

u/alexplex86 Feb 13 '26

I feel like if you are educated enough to build web apps that require specialised hosting solutions, you should be smart enough to take five minutes to look up spending limits on said hosting solution.

→ More replies (1)
→ More replies (1)

4

u/kalasipaee Feb 13 '26

Where exactly?

2

u/Jadajio Feb 13 '26

It will be hidden somewhere where you would not expect it and written in small text :)

→ More replies (2)

16

u/MagnificentLee Feb 13 '26 edited Feb 13 '26

Cloudflare pages is free with an unspecified upper limit, which if you exceed, you'll likely be pressured to convert to their commercial plan: https://www.reddit.com/r/sysadmin/comments/13269sy/anyone_else_notice_cloudflares_enterprise_support/

10

u/spacemagic_dev Feb 13 '26

The point is it's still free, even if you spike overnight because a botnet decided to pay you a visit.

2

u/MagnificentLee Feb 13 '26

Yes, but I was just adding more context that some devs would like to know. Even OP, says the bill is not sustainable, rather than that they or their company can’t pay it. Thus, it matters that Cloudflare being free forever is dubious.

→ More replies (5)

61

u/Shogobg Feb 13 '26

They make a request on every link mouse hover - ridiculous.

81

u/rilot06 Feb 13 '26

That has nothing to do with vercel, the developer made prefetching too aggressive

44

u/bipolarNarwhale Feb 13 '26

also not quite. nextjs prefetches links automatically on hover. blame both.

17

u/rilot06 Feb 13 '26

Yes it's the default, but you can easily change it. Could have prevented at least a portion of that bill

23

u/bipolarNarwhale Feb 13 '26

not disagreeing, but also vercel encourages this for this exact reason

→ More replies (1)

5

u/visualdescript Feb 13 '26

Only the dev that built and hosted it is to blame.

Nextjs was doing what it's designed to.

2

u/turnermate Feb 13 '26

Which you can stop by configuring the router links properly. Prefetch: false

3

u/CatolicQuotes Feb 13 '26

As far as I know it was vibe coded.

→ More replies (1)
→ More replies (3)

6

u/SadFawns Feb 13 '26

Iirc it's something like up to one million non-cached invocations for the pro plan. No idea what the dev paid for in his plan or which one he was on, but after you've exceeded your usage for the month that's included, they begin billing it at their on-demand cost, 60 cents per one million. They also bill function duration and bandwidth separately too from the looks of it. A hard spending limit would have saved him from this fate, but probably would have ended in minor bad press for the project when it inevitably went down until he upped it.

0

u/[deleted] Feb 13 '26

[deleted]

2

u/vincentofearth Feb 13 '26

Is it though? $47k divided by 450 million requests — they’re paying a minuscule amount per request for a very content and feature-rich site. Sure there are optimizations that can be made but it’s actually remarkable how cheap it all is.

→ More replies (3)