Skip to content

Commit

Permalink
fix: basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
prncss-xyz committed Jul 18, 2024
1 parent 9b47899 commit 3ed330e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const context: MyRooterContext = {
}

const router = createRouter({
basepath: '/renote/',
routeTree,
context,
defaultPreloadStaleTime: 0,
Expand All @@ -36,7 +37,7 @@ declare module '@tanstack/react-router' {

const rootElement = document.getElementById('root')!
if (!rootElement.innerHTML) {
const root = ReactDOM.createRoot(rootElement)
const root = ReactDOM.createRoot(rootElement, {})
root.render(
<StrictMode>
<QueryClientProvider client={queryClient}>
Expand Down

0 comments on commit 3ed330e

Please sign in to comment.