Overview
The frontend contains both the legacy Pages Router (frontend/src/pages/ — _app.tsx, _document.tsx, ~50 page files) and the newer App Router (frontend/src/app/). Maintaining two routing systems doubles routing/middleware/_app-level logic, splits auth and layout behavior across both, and creates ambiguity about where new pages belong.
Evidence
frontend/src/pages/_app.tsx, frontend/src/pages/_document.tsx and page files
frontend/src/app/ — app router pages (settings, profile, admin, dashboard, ...)
Acceptance Criteria
Files to Modify
frontend/src/pages/
frontend/src/app/
frontend/next.config.js
Priority: Low
Overview
The frontend contains both the legacy Pages Router (
frontend/src/pages/—_app.tsx,_document.tsx, ~50 page files) and the newer App Router (frontend/src/app/). Maintaining two routing systems doubles routing/middleware/_app-level logic, splits auth and layout behavior across both, and creates ambiguity about where new pages belong.Evidence
frontend/src/pages/_app.tsx,frontend/src/pages/_document.tsxand page filesfrontend/src/app/— app router pages (settings, profile, admin, dashboard, ...)Acceptance Criteria
pages/routes toapp/(or vice versa)_app.tsx/_document.tsxafter migrationFiles to Modify
frontend/src/pages/frontend/src/app/frontend/next.config.jsPriority: Low