import React from "react"; import { createRoot } from "react-dom/client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import App from "./App"; import ErrorBoundary from "./components/ErrorBoundary"; import PrivacyPolicy from "./components/legal/PrivacyPolicy"; import Terms from "./components/legal/Terms"; import "./index.css"; const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false, staleTime: 30_000, refetchOnWindowFocus: false } }, }); // Public, login-free legal pages. They live outside the authenticated App tree (no /api/me) // so Google's consent screen and reviewers can fetch them directly. Reached by full-page // navigation (plain ), so a simple pathname switch is enough — no router needed. const path = window.location.pathname; const root = path === "/privacy" ? : path === "/terms" ? : ( ); createRoot(document.getElementById("root")!).render( {root} );