Skip to content

Commit 3c09e0d

Browse files
committed
Added basename arg
1 parent ec9d6ef commit 3c09e0d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Eplant/main.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Eplant from './Eplant'
2222
import './css/index.css'
2323
const router = createBrowserRouter([
2424
{
25-
path: import.meta.env.BASE_URL ?? '/',
25+
path: '/',
2626
element: <Eplant />,
2727
children: [
2828
{
@@ -67,7 +67,9 @@ const router = createBrowserRouter([
6767
],
6868
errorElement: <ErrorBoundary></ErrorBoundary>,
6969
},
70-
])
70+
], {
71+
basename: import.meta.env.BASE_URL ?? '/',
72+
})
7173

7274
export const queryClient = new QueryClient()
7375

0 commit comments

Comments
 (0)