Skip to content

Commit

Permalink
chore: basenameの追加とコンフリクトの解決を行った
Browse files Browse the repository at this point in the history
  • Loading branch information
toranomonn committed Jul 19, 2024
1 parent e70f1b3 commit db9fe1c
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions packages/kcmsf/src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,44 @@ import { Ranking } from "../pages/ranking.tsx";
import { Result } from "../pages/result.tsx";
import { Layout } from "./layout.tsx";

export const router = createBrowserRouter([
export const router = createBrowserRouter(
[
{
path: "/",
element: <Layout />,
children: [
{
index: true,
element: <Home />,
},
{
path: "entrylist",
element: <EntryList />,
},
{
path: "entry",
element: <Entry />,
},
{
path: "match",
element: <Match />,
},
{
path: "matchlist",
element: <MatchList />,
},
{
path: "ranking",
element: <Ranking />,
},
{
path: "result",
element: <Result />,
},
],
},
],
{
path: "/",
element: <Layout />,
children: [
{
index: true,
element: <Home />,
},
{
path: "entrylist",
element: <EntryList />,
},
{
path: "entry",
element: <Entry />,
},
{
path: "match",
element: <Match />,
},
{
path: "matchlist",
element: <MatchList />,
},
{
path: "ranking",
element: <Ranking />,
},
{
path: "result",
element: <Result />,
},
],
},
]);
basename: import.meta.env.BASE_URL,
}
);

0 comments on commit db9fe1c

Please sign in to comment.