# next-migration-app-router > Migrate routes from Pages Router to App Router safely. - Author: Adam Winick - Repository: sinelanguage/cursor-config-nextjs - Version: 20260202191819 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/sinelanguage/cursor-config-nextjs - Web: https://mule.run/skillshub/@@sinelanguage/cursor-config-nextjs~next-migration-app-router:20260202191819 --- --- name: next-migration-app-router description: Migrate routes from Pages Router to App Router safely. disable-model-invocation: true --- # Next.js Pages to App Router Migration Plan and migrate existing `pages/` routes to `app/` with route parity checks. ## When to Use - Incremental migration to App Router - Reducing legacy Pages Router surface ## Inputs - Routes to migrate - Data fetching method in `pages/` - Route parity requirements ## Instructions 1. Identify route parity and dependencies. 2. Create App Router equivalents under `app/`. 3. Replace `getServerSideProps`/`getStaticProps` with server fetches. 4. Validate metadata, cache settings, and error handling. 5. Remove legacy routes after validation. ## Output - Migration plan and App Router replacement routes.