· David Webb · build-log  · 2 min read

Monorepo Mayhem & Database Drama

Midway through merging three repos into a monorepo, my build broke due to exposed security keys. Here's how I fixed my deployment and secured my database.

Midway through merging three repos into a monorepo, my build broke due to exposed security keys. Here's how I fixed my deployment and secured my database.

The Merge That Broke Everything

I’m midway through merging three separate repos—core app, marketing CMS, and admin backend—into a single “monorepo”. Yesterday, my build broke thanks to exposed security keys…WHOOPS!!

Today’s goal is to fix my broken deployment, secure my database and get things working again…

When AI Tools Make Stuff Up

AI tools are great, but sometimes they just make stuff up! Claude Code kept giving advice without checking my actual database! So, I had to tell it to stop guessing and look at the facts!!

The Power of Transparency

Sometimes, the best tool is the one with the greatest transparency, closest to the source. Using Supabase’s SQL Editor to copy and paste from Cursor meant I didn’t have to worry about database permissions, and could double-check everything with Supabase’s AI assistant.

Securing the Database

I was able to connect my database to my new spelling app and locked it down with the right permissions—row level security for both admin and anonymous users. Now, only the right people can access the data, keeping everything safe!

What’s Next?

It’s late, so I’m not sure what’s next…I’ll check my migration plan and pick one of three things:

  1. Uplift the UX to match my old site
  2. Implement a design system to improve the UI
  3. Figure out if the service worker is still needed, and why

Stay tuned!


Building in the trenches, one database drama at a time.

Share:
Back to Blog

Related Posts

View All Posts »
First Impressions: ChatGPT Codex Opens New Possibilities

First Impressions: ChatGPT Codex Opens New Possibilities

I tested ChatGPT's Codex AI coding agent for the first time. It found a typo I missed, added 1,300 lines of test code, and opened my mind to what's possible with AI-assisted development. Here's what happened and why it matters for solo developers.

Monorepo Design System Chaos (Part 1)

Monorepo Design System Chaos (Part 1)

Three apps, one design system, and a $20 AI expert consultation. Here's what happens when Astro, Vite, shadcn/ui, and Tailwind collide in a monorepo, and why it's still not resolved.