lifecycle/migrate-from-nextjs

Migrate Next.js App Router apps to TanStack Start.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/abereghici/skills --skill lifecycle-migrate-from-nextjs-abereghici
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lifecycle/migrate-from-nextjs
Source: https://github.com/abereghici/skills/tree/main/vendor/tanstack-router/packages/react-start/skills/lifecycle/migrate-from-nextjs
Command: npx skills add https://github.com/abereghici/skills --skill lifecycle-migrate-from-nextjs-abereghici

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Step-by-step migration guidance from Next.js App Router to TanStack Start, enabling a safe and incremental transition.

Core Features & Use Cases

  • Converts routing, API handlers, and middleware patterns to TanStack Start equivalents.
  • Includes guidance for data fetching, server functions, and metadata migration.
  • Use Case: You want to port a Next.js app to TanStack Start with minimal risk and friction.

Quick Start

Follow the migration guide to incrementally convert routes, actions, and middleware using TanStack Start patterns.

Frequently Asked Questions about lifecycle/migrate-from-nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Next.js App Router to TanStack Start?

Migrating Next.js middleware to TanStack Start involves mapping your App Router middleware patterns to TanStack Start equivalents, ensuring proper server function boundaries and isomorphic routing execution across your React app.

Can I port Next.js API handlers to TanStack Start server functions?

Yes, you can port Next.js API handlers to TanStack Start by converting them to use createServerFn. This enforces proper server-side execution and maps data fetching and action patterns to TanStack Start equivalents.

What is the best way to handle data fetching when moving from Next.js to TanStack Start?

The best way to handle data fetching when moving from Next.js to TanStack Start is to map your existing fetching patterns to TanStack Start's isomorphic routing and createServerFn usage for proper server and client boundaries.

Does TanStack Start support isomorphic routing for Next.js migrations?

Yes, TanStack Start supports isomorphic routing. The migration process enforces isomorphic routing and proper mapping of Next.js concepts to ensure your React app handles routing correctly across server and client environments.