Skip to content

[Frontend][Tech-debt] Legacy pages/ router coexists with the new app/ router — dual routing systems #467

Description

@Penielka

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

  • Decide on a single router and document the migration plan
  • Migrate remaining pages/ routes to app/ (or vice versa)
  • Remove the obsolete _app.tsx/_document.tsx after migration

Files to Modify

  • frontend/src/pages/
  • frontend/src/app/
  • frontend/next.config.js

Priority: Low

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions