diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:14:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:14:17 +0900 |
| commit | b450648caa0d1bd5c91e67a33153bbacaf57f006 (patch) | |
| tree | 8dce01b8eb398759a3abdb97d3d333b52738c768 /frontend/app/routes/dashboard.tsx | |
| parent | a7342525e5e4052113e6d5e75b6fd50c91687514 (diff) | |
| download | phperkaigi-2025-albatross-b450648caa0d1bd5c91e67a33153bbacaf57f006.tar.gz phperkaigi-2025-albatross-b450648caa0d1bd5c91e67a33153bbacaf57f006.tar.zst phperkaigi-2025-albatross-b450648caa0d1bd5c91e67a33153bbacaf57f006.zip | |
feat: prepend base path
Diffstat (limited to 'frontend/app/routes/dashboard.tsx')
| -rw-r--r-- | frontend/app/routes/dashboard.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index e6a43de..d69018a 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -13,8 +13,8 @@ export async function loader({ request }: LoaderFunctionArgs) { if (user.is_admin) { return redirect( process.env.NODE_ENV === "development" - ? "http://localhost:8002/admin/dashboard" - : "/admin/dashboard", + ? "http://localhost:8002/iosdc-japan/2024/code-battle/admin/dashboard" + : "/iosdc-japan/2024/code-battle/admin/dashboard", ); } const { games } = await apiGetGames(token); |
