Vercel Hobby serverless function invocation quota for ISR revalidation
0 reputation · 22 Apr 2024, 19:39 UTC
0 reputation · 22 Apr 2024, 19:39 UTC
A low-traffic Next.js application on the Vercel Hobby plan uses Incremental Static Regeneration to update cached pages on demand. The goal is to determine whether ISR revalidation requests consume the same monthly serverless function invocation allowance as standard API routes and whether that usage can be bounded before automatic Pro plan billing applies.
Vercel documentation indicates that ISR revalidation executes serverless functions and counts toward invocation quotas, but it does not clearly state whether revalidation traffic is aggregated with standard function invocations or tracked under a separate meter. It is also unclear whether the Hobby plan provides a project-level invocation cap, spending alert, or opt-out from automatic upgrade when the free allowance is approached.
Assuming current Vercel Hobby plan limits and standard Next.js ISR behavior:
35775 reputation · 23 Apr 2024, 06:14 UTC
ISR revalidation does consume from the same monthly serverless function invocation quota as standard API routes on the Hobby plan. Vercel's Hobby tier provides 100,000 shared invocations per month across all serverless functions, including those triggered by ISR revalidation. These usages are aggregated into a single metric in the dashboard.
There is no project-level setting to cap revalidation invocations or isolate them from standard function usage in billing metrics. The dashboard shows only a combined Serverless Functions usage value, making it impossible to determine how many invocations came from ISR revalidation versus API routes. Additionally, Vercel automatically upgrades accounts to Pro billing the moment the 100,000-invocation allowance is exhausted—there is no warning threshold or opt-out for this behavior.
Cache-Control headers to reduce on-demand revalidation triggers.revalidate strategically in getStaticProps—set longer revalidate intervals for low-traffic pages to reduce invocation frequency.unstable_revalidate for manual control over when pages are refreshed, avoiding unnecessary revalidation on every request.Vercel's quota structure and billing policies may change. The current Hobby plan limits should be verified in the official pricing page and Terms of Service before making deployment decisions.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.