padhle - post migration

This commit is contained in:
2026-09-15 04:08:55 -04:00
parent 534b51b41b
commit b2d8109019
509 changed files with 147378 additions and 303 deletions
+11 -1
View File
@@ -4,6 +4,7 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import App from "./App.jsx";
import { AuthProvider } from "./lib/auth/SupabaseAuth.jsx";
import "./styles/global.css";
@@ -11,7 +12,16 @@ import "./styles/global.css";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<AuthProvider>
<App />
<BrowserRouter>
<Routes>
{/* Both paths render the same App shell; the chat id is read via
useParams() to support deep links like /chat/:chatId. A catch-all
keeps unknown paths on the app (Vite SPA fallback serves index.html). */}
<Route path="/" element={<App />} />
<Route path="/chat/:chatId" element={<App />} />
<Route path="*" element={<App />} />
</Routes>
</BrowserRouter>
</AuthProvider>
</React.StrictMode>
);