The day the app went dark

A paused database, an expired agreement and a budget with no ceiling: three problems that taught me to plan for the boring stuff.

Not every problem in a project is about code. Some of the most stressful ones in Hangar 64 were about accounts, limits and paperwork.

1. The database fell asleep

On November 16 the app stopped working. Sign-in failed and the catalog wouldn't load. The cause was simple: Supabase pauses free projects after a quiet week, and mine had gone quiet while I was working on design. Nothing was lost, and restoring it from the dashboard took a few minutes.

The fix took longer to think about than to build: a small scheduled job on GitHub Actions now checks the database every three days, which keeps it awake and tells me if it stops answering.

What I learnedWhen something breaks, check the dashboards before the code. And anything on a free plan needs a plan for what happens when the free plan says no.

2. Apple's paperwork blocked a release

When build 6 was ready, the upload to TestFlight failed almost instantly. Apple had updated its developer agreement, and until it was accepted, nothing could be uploaded. Accepting it took one minute; noticing it took a day. Now the release checklist starts with checking for new agreements.

3. A budget with no ceiling

Every scan costs a little money, because a model reads the photo. With a handful of friends testing, that's nothing. But a public beta link could bring in strangers, and I had a per-person daily limit but no limit for everyone together. One busy day could have spent the whole budget and stopped scanning for everyone.

Before opening the beta to the public, I added an app-wide cap of 1,000 scans a day. If it's ever reached, people see a friendly message and can type the code instead. It's the kind of feature no tester will notice, which is exactly the point.

The pattern

None of these were hard problems. They were problems I hadn't planned for. Now every release gets a short list of boring checks: is the database awake, are Apple's agreements signed, are the limits set.