top | item 41105208

(no title)

mubu | 1 year ago

On Vercel? How? As long as it's non commercial you should be able to just run it for free there

discuss

order

_heimdall|1 year ago

This been my experience eon Netlify, but not with Vercel. The biggest bottleneck is often the limit of 12 serverless functions per site (technically the limit is dependent on what framework you use which is even more frustrsting).

The function limit is particularly frustrstinb when you need route splitting to avoid slow cold starts or memory limits. I even hit this in a few Astro projects which was particularly suprising - when serverless rendering was an all or nothing option for Astro Vercel was effectively useless on Hobby plans.

leerob|1 year ago

The limit of 12 functions is only if you are deploying an API-only project without bundling[1]. The majority of the modern frameworks support bundling, so you can write many, many more APIs (100s+) which compile down to a handful of functions.

This bundling also means fewer cold starts. Bundling is the default for Astro[2]. Also worth noting, on paid plans, functions are kept warm automatically[3].

[1]: https://vercel.com/docs/functions/runtimes#functions-created...

[2]: https://vercel.com/docs/frameworks/astro#configuration-optio...

[3]: https://vercel.com/changelog/vercel-functions-now-have-faste...