News

Dynamic Trace Routes and Regeneration

How AITracer serves trace-heavy dashboard routes with predictable refresh behavior.

Dynamic Trace Routes and Regeneration

The Traces list and trace detail pages are dynamic: they read from Postgres on each request so you always see the latest runs from Agent Lab, chat, coach, or API ingest.

Route strategy

  • static generation for docs and marketing
  • dynamic rendering for authenticated dashboard routes (/dashboard/traces, /dashboard/lab, etc.)
  • API routes for local runs (/api/local/run) and ingest (/api/traces)

Why it matters for Agent Lab

After you run a prompt locally, you expect the new trace to show up immediately without a static rebuild. Dynamic trace routes are what make that work in a Next.js app.