mirror of
https://github.com/elder-plinius/LEAKHUB.git
synced 2026-07-21 03:20:54 +02:00
🔧 FIX: Enhanced wrangler.jsonc for SPA routing and removed console log from main.tsx
This commit is contained in:
+1
-3
@@ -8,8 +8,6 @@ import App from "./App.tsx";
|
||||
|
||||
const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);
|
||||
|
||||
console.log("Convex URL:", convex);
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<ConvexAuthProvider client={convex}>
|
||||
@@ -17,5 +15,5 @@ createRoot(document.getElementById("root")!).render(
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</ConvexAuthProvider>
|
||||
</StrictMode>,
|
||||
</StrictMode>
|
||||
);
|
||||
|
||||
+6
-1
@@ -2,7 +2,12 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "leakhub",
|
||||
// Workers Assets configuration - replaces Pages' pages_build_output_dir
|
||||
"assets": { "directory": "./dist" },
|
||||
// "not_found_handling": "single-page-application" enables SPA routing
|
||||
// so that /dashboard and other client-side routes serve index.html instead of 404
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
"not_found_handling": "single-page-application",
|
||||
},
|
||||
// Required compatibility date for Workers runtime features
|
||||
"compatibility_date": "2025-06-05",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user