Skip to content

Commit 1214baa

Browse files
committed
fix: add router basename for GitHub Pages subpath deployment, fixes deployment issueEOF
1 parent 17403ea commit 1214baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Eplant/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const router = createBrowserRouter([
6767
],
6868
errorElement: <ErrorBoundary></ErrorBoundary>,
6969
},
70-
])
70+
], { basename: import.meta.env.BASE_URL ?? '/' })
7171

7272
export const queryClient = new QueryClient()
7373

0 commit comments

Comments
 (0)