Skip to content

Commit

Permalink
Fix reactrouter basename
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Jan 23, 2025
1 parent d3200a8 commit 1b35557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions extensions-site/app/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { createBrowserRouter } from "react-router";
import HomePage from "./routes/home";
import DetailPage from "./routes/detail";

const basename = "/goose/v1/extensions";

export const router = createBrowserRouter([
{
path: "/",
Expand All @@ -13,7 +11,4 @@ export const router = createBrowserRouter([
path: "/detail/:id",
element: <DetailPage />,
},
],
{
basename,
});
]);
1 change: 1 addition & 0 deletions extensions-site/react-router.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Config } from "@react-router/dev/config";

export default {
basename: "/goose/v1/extensions",
ssr: false,
} satisfies Config;

0 comments on commit 1b35557

Please sign in to comment.