about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-06 23:00:51 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-06 23:09:09 +0200
commit253706c8957194cd4bd1af27eb8d8c50c5260f49 (patch)
treea0fffac1151473cb62e0aa7b596a2cacab8cbc73 /src
parentfmt (diff)
downloadfs-tracer-frontend-253706c8957194cd4bd1af27eb8d8c50c5260f49.tar.gz
fs-tracer-frontend-253706c8957194cd4bd1af27eb8d8c50c5260f49.tar.bz2
fs-tracer-frontend-253706c8957194cd4bd1af27eb8d8c50c5260f49.zip
Misc: Add GH pages deploy
Diffstat (limited to 'src')
-rw-r--r--src/App.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.tsx b/src/App.tsx
index ab749ab..a7e9634 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -13,12 +13,12 @@ function App() {
   const [session, setSession] = useState(null)
   return (
     <>
-      <BrowserRouter>
+      <BrowserRouter basename={import.meta.env.DEV ? '/' : '/fs-tracer-frontend'}>
         <Routes>
           <Route index element={
             <Home supabase={supabase} session={session} />
           } />
-          <Route path="/login" element={
+          <Route path="login" element={
             <Login supabase={supabase} session={session} setSession={setSession} />
           } />
           <Route path="*" element={<p>notfound</p>} />