feat(admin): redirect /admin to /admin/v2

This commit is contained in:
Tyler
2026-06-17 15:19:53 -06:00
parent afd96b93e1
commit 1fa8a78f82
+5
View File
@@ -115,6 +115,11 @@ const nextConfig: NextConfig = {
// Use `permanent: false` (307) so we can revert easily if a // Use `permanent: false` (307) so we can revert easily if a
// regression is caught in monitoring before the v1 files are // regression is caught in monitoring before the v1 files are
// removed in Task 6.2. // 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", destination: "/admin/v2/orders", permanent: false },
{ source: "/admin/orders/:id", destination: "/admin/v2/orders/:id", permanent: false }, { source: "/admin/orders/:id", destination: "/admin/v2/orders/:id", permanent: false },
{ source: "/admin/stops", destination: "/admin/v2/stops", permanent: false }, { source: "/admin/stops", destination: "/admin/v2/stops", permanent: false },