Skip to content

Commit

Permalink
fix: configure BrowserRouter basename
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrobertbrooks committed Jun 27, 2024
1 parent 3e0186d commit 76367ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { CalendarPage, AddEventPage } from "./pages";

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<BrowserRouter>
<BrowserRouter basename="/calendar">
<QueryParamProvider adapter={ReactRouter6Adapter}>
<ParamsProvider>
<EventsProvider>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default defineConfig({
server: {
port: 3000,
},
base: "/calendar",
base: "/calendar/",
});

0 comments on commit 76367ab

Please sign in to comment.