diff --git a/next.config.ts b/next.config.ts index 0f729c6..f8c2c9e 100644 --- a/next.config.ts +++ b/next.config.ts @@ -115,6 +115,11 @@ const nextConfig: NextConfig = { // Use `permanent: false` (307) so we can revert easily if a // regression is caught in monitoring before the v1 files are // removed in Task 6.2. + // PR 8, Task 8.1: redirect the bare /admin path to the v2 dashboard. + // The dashboard itself still lives at /admin (as the v1 page) + // until Task 8.2 removes it after a 3-day monitoring window — + // this redirect just points the v1 entry point at v2. + { source: "/admin", destination: "/admin/v2", permanent: false }, { source: "/admin/orders", destination: "/admin/v2/orders", permanent: false }, { source: "/admin/orders/:id", destination: "/admin/v2/orders/:id", permanent: false }, { source: "/admin/stops", destination: "/admin/v2/stops", permanent: false },