DEV Community

Durim
Durim

Posted on

Every check was green. The live site had a broken menu.

I am building Builddu, an AI app builder where you type one sentence and get a running web app back. Yesterday we ran a test build for a made up car rental company and learned something I think everyone building with AI should know.

The build finished. Every check we had passed. The pages looked good.

Then we opened the live site and clicked the menu. "Fleet" went to a 404.

What happened

The site is generated in a few separate steps. One step writes the layout with the navigation, other steps write the single pages. None of them sees what the others wrote.

The model writing the layout decided the car page should live at /fleet. Makes total sense for a car rental. But the real page was at /menu. So the menu linked to a page that never existed.

Our checker was supposed to catch dead links. It did catch some of them inside the pages. But in the layout the links were written as data, like { href: "/fleet" }, and the checker only looked for href="/fleet". Same link, different spelling, so it slipped through.

There was a second one. The layout adds the brand name to every page title automatically, so our rule said pages should not repeat the brand. Fine for subpages. But the home page does not get that automatic part, so following the rule left the home page with no brand in the title at all.

What I took from it

  1. Checking the code is not the same as checking the site. A regex will always miss some way of writing the same thing.
  2. If a checker enforces a rule, the prompt has to say that rule. Otherwise the model cant win and the build just fails.
  3. Anything that has to match across files breaks first when separate AI calls write separate files. Links, brand name, email, phone format.

So now we are adding a last step that opens the real preview, follows every internal link and reads every page title. That is how we found both bugs anyway, so the machine should do it too.

If you build with Lovable, Bolt or anything similar, click through your live site yourself before you send it to anyone. It takes two minutes and it catches stuff no test sees.

And if you want to try what we are building, it is at builddu.com. 50 free credits, no card needed.

Top comments (0)