import type { Config } from "@react-router/dev/config";

export default {
  // SPA mode — no SSR. Prerendering is disabled because all routes are
  // auth-gated and render only a loading spinner before JS loads, so
  // prerendered HTML provides no SEO or FCP benefit. Enabling it caused
  // React hydration error #418: the prerendered HTML included React Router's
  // streaming Suspense markers (<!--$?-->) that have no counterpart in the
  // client virtual DOM, so hydrateRoot always found a mismatch.
  ssr: false,
  prerender: false,
} satisfies Config;
