Hit Vercel's 12-function limit on the free plan. How do you stay under it?

by•

I'm a solo maker building a small web app from my phone, and my deploy just failed with "No more than 12 Serverless Functions can be added to a Deployment on the Hobby plan."

I had added a few new API endpoints, one file each, and that pushed me over.

What I did to fix it:

• Moved the code into helper files that Vercel doesn't count as functions (files in folders starting with _)

• Combined related endpoints into one function that picks the action from a query parameter

• Merged a small public endpoint into one I already had

It works. But the code is harder to read now, and I'm at exactly 12, so the next feature has the same problem.

For those of you shipping on free tiers:

1. Do you combine endpoints, or move to a different host once you outgrow it?

2. At what point did you decide to pay for Pro?

3. Is there a cleaner pattern than one big function with a switch?

I'd love to hear how you handled it.

2 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.