/plushcap/analysis/workos/migrating-to-next-js-app-router-with-zero-downtime

Migrating to Next.js App Router with zero downtime

What's this blog post about?

The blog post discusses a migration strategy to adopt Next.js App Router incrementally without disrupting ongoing work. It outlines steps such as upgrading Next.js, migrating routing hooks, creating a temporary /app/new directory, importing existing code from /pages, using a query param to access the App Router, and removing the /pages directory. The post also highlights the benefits of React Server Components when applied in load-bearing code paths.

Company
WorkOS

Date published
June 24, 2024

Author(s)
Lucas Motta

Word count
1184

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.