feat(admin): redirect /admin to /admin/v2
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user