Dharmendra Jagodana
Founder of BuildBase. Builds the platform and the six products that run on it.
129 posts · page 7 of 11
Stytch vs BuildBase: the auth decision you cannot reverse cheaply
Stytch is an auth vendor you add to a stack. BuildBase is a backend that includes auth. The difference that matters is what it costs to change your mind later.
What is usage-based billing, and what it does to your invoices
Usage-based billing charges for what a customer consumed rather than for access. The definition is easy. Defending the number on the invoice is the actual product.
Connection pool exhausted as org count grows
MongoNotConnectedError under load is usually LRU eviction, not a dead database. The arithmetic behind the 30-connection tenant window and where your own ceiling lands.
An invited member who cannot see the workspace
The invite is parked in one of the states it passes through, and the admin console renders most of them identically. Walk the states, find yours, stop reading.
Middleware redirect loop after login in the App Router
Your middleware sees no cookie and 307s to /login. Your login page sees a session and bounces back. Traced hop by hop, plus the matcher and cookie rules that decide where it turns around.
A permission change that has not taken effect yet
A role change in the console or SDK applies on the next request, API keys included. What lags is an open tab or a role written around the routes. Here is which.
A 429 when the quota should not be exhausted
A 429 on the usage endpoint is almost never the quota, which answers 402 QUOTA_EXHAUSTED. How to reconcile the counter you read with the one being enforced.
Stripe webhook signature verification failed in Next.js
One error string covers two different bugs. Five causes for a failed Stripe webhook signature in Next.js, ranked by how often each is actually it, each with its one-line test.
Token expired mid-request on a long operation
A 401 halfway through an upload, while the user is still signed in for another 29 days. Two clocks, not one, and the fix is a refresh before the call rather than a retry after it.
Why your webhook is rejected after five minutes
A BuildBase delivery older than five minutes fails verification before the signature is ever compared. Why the max age exists, and the three things that trip it legitimately.
How to enforce quotas server-side in Next.js
The record call is the lock, not the if-statement after it. How quota enforcement actually behaves on hard-cap and overage plans.
How to add a credits wallet in Next.js, and why the balance is not one number
Add a credits wallet in Next.js: sell packages, show the balance, spend FIFO from dated buckets, and warn before expiry. The balance is an aggregate over buckets, not a column you decrement.
Read enough? Build something.
Everything we write about is in the product. Start on the Free plan, or try a paid plan free for 7 days, no credit card.