From db9fe1c2d8378ecca7caccb31a6ce97c82871607 Mon Sep 17 00:00:00 2001 From: toranomonn Date: Fri, 19 Jul 2024 15:14:03 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20basename=E3=81=AE=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=A8=E3=82=B3=E3=83=B3=E3=83=95=E3=83=AA=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=81=AE=E8=A7=A3=E6=B1=BA=E3=82=92=E8=A1=8C=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/kcmsf/src/routes/router.tsx | 75 +++++++++++++++------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/packages/kcmsf/src/routes/router.tsx b/packages/kcmsf/src/routes/router.tsx index 831d7b2f..777c7dc9 100644 --- a/packages/kcmsf/src/routes/router.tsx +++ b/packages/kcmsf/src/routes/router.tsx @@ -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: , + children: [ + { + index: true, + element: , + }, + { + path: "entrylist", + element: , + }, + { + path: "entry", + element: , + }, + { + path: "match", + element: , + }, + { + path: "matchlist", + element: , + }, + { + path: "ranking", + element: , + }, + { + path: "result", + element: , + }, + ], + }, + ], { - path: "/", - element: , - children: [ - { - index: true, - element: , - }, - { - path: "entrylist", - element: , - }, - { - path: "entry", - element: , - }, - { - path: "match", - element: , - }, - { - path: "matchlist", - element: , - }, - { - path: "ranking", - element: , - }, - { - path: "result", - element: , - }, - ], - }, -]); + basename: import.meta.env.BASE_URL, + } +);