From 6773a92d143077ac6d1fe933b1210e63b34f4388 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Thu, 18 Sep 2025 15:49:33 +0100 Subject: [PATCH] updating basename path --- src/App.tsx | 3 +-- src/main.tsx | 2 +- vite.config.ts | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 0f804fa..6e6c017 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import Container from "./components/UI/Container"; import Dashboard from "./pages/Dashboard"; -import { Navigate, Route, Routes } from "react-router"; +import { Route, Routes } from "react-router"; import FrontCamera from "./pages/FrontCamera"; import RearCamera from "./pages/RearCamera"; import SystemSettings from "./pages/SystemSettings"; @@ -20,7 +20,6 @@ function App() { } /> } /> - } /> diff --git a/src/main.tsx b/src/main.tsx index 912ee8e..027b230 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -13,7 +13,7 @@ Modal.setAppElement("#root"); createRoot(document.getElementById("root")!).render( - + diff --git a/vite.config.ts b/vite.config.ts index 672fe08..bc2b686 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,4 +6,5 @@ import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [react(), tailwindcss()], server: { host: true }, + base: "/index", });