Skip to content

Commit

Permalink
fix: vercel router
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseiBestuzhev committed Nov 19, 2023
1 parent 216e0ed commit a1bebf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/providers/router/router-config.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createBrowserRouter, Navigate, Outlet, RouterProvider } from 'react-router-dom'
import { createHashRouter, Navigate, Outlet, RouterProvider } from 'react-router-dom'

import { privateRoutes, publicRoutes } from './routes.tsx'

Expand All @@ -15,7 +15,7 @@ const PrivateRoutes = () => {
return isAuthenticated ? <Outlet /> : <Navigate to="/sign-in" />
}

const router = createBrowserRouter([
const router = createHashRouter([
{
path: '/',
element: <Layout />,
Expand Down

0 comments on commit a1bebf7

Please sign in to comment.