Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ const platform = {
launchCode: createHashLaunchCodeSource(),
}

// generouted's <Routes> builds its own browser router with no basename, so it
// ignores Vite's `base`. Build the router ourselves from its exported route
// tree so client navigation works under the `/editor` subpath.
const basename = import.meta.env.BASE_URL.replace(/\/$/u, '') || '/'
const router = createBrowserRouter(routes, { basename })

Expand Down
Loading