diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..4e5a380 --- /dev/null +++ b/public/404.html @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/main.jsx b/src/main.jsx index b798301..8451a3c 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -6,17 +6,22 @@ import "./index.css"; import ErrorPage from "./error-page.jsx"; import { QuickSolve } from "./pages/quick-solve/QuickSolve.jsx"; -const router = createBrowserRouter([ +const router = createBrowserRouter( + [ + { + path: "/", + element: , + errorElement: , + }, + { + path: "/quick-solve", + element: , + }, + ], { - path: "/", - element: , - errorElement: , - }, - { - path: "/quick-solve", - element: , - }, -]); + basename: "/chess-arena", + } +); ReactDOM.createRoot(document.getElementById("root")).render(