6
7 Comments

The Bug I Couldn’t See (Because I Was Too “Special”)

Yesterday was a milestone: first day I started cold-reaching Redditors to test Indie10k — my “growth gym” for indie hackers where you get 3 small tasks a day to keep momentum.

One of the first testers replies:

“The login is on a loop. I can’t get in.”

Uh oh.

I try it myself. Everything works perfectly. Smooth dashboard, no problem.
But when I'm registering another account, it hits me: I’m on the allowlist.


The Sneaky Culprit

Way back in the prototype phase, I had this flag:

USER_SYSTEM_BETA_ALLOWLIST

It let me (and a few friends) bypass login shenanigans. When I flipped the switch to open beta, I forgot to remove it.

Result for new testers:

  • Dashboard → 307 redirect to login

  • Login → dashboard

  • Dashboard → login again

  • …repeat forever

For me? Blissfully invisible.
For everyone else? A hamster wheel of despair.


The Fix

Once I deleted the allowlist hack, redeploy in Vercel, everything worked.
Now testers can actually reach the dashboard and see the action card system instead of getting booted around in circles.


The Spark Question

This is where I’m at: no tests at all, just hacking and shipping.
I’m still in “does anyone like this?” mode, not “let’s make it bulletproof” mode.

But this incident makes me wonder:
👉 At what stage did you start adding tests?
Do you wait until you know the product has legs, or do you add them early to avoid exactly this kind of silly bug?

Would love to hear how others balance speed vs. safety at the early stage.

posted toAvatar for product Indie10k
Indie10k
  1. 1

    For a web application, e2e tests are pretty easy to add and give so much peace of mind. Claude can do most of the work, you just need to fine-tune the final 10% to make them reliable.

    Right now, for my simple and early stage startup mentoring platform, I have about 50 e2e tests that cover pretty much every part of the application. Takes 15 minutes to run before every production release while I take a quick break and feel confident there won't be nasty surprises.

    1. 2

      That totally makes sense. I think I'll add add first batch of e2e tests when I crossed the prototype validation phase. I'll take all your word! Ty!

  2. 1

    Interesting, very human to overlook things like that.

    1. 1

      We, the indie devs, learn by making mistakes!

  3. 1

    Love your information, Thank you for sharing this valuable information

    1. 1

      Thanks so much for the kind words! It's fantastic to hear you found the information valuable. My goal is always to provide useful and clear insights, so your feedback is really appreciated.