Incrementally Adopting Next.js
summary
Next.js 9.5 adds config-driven redirects and rewrites that let a site migrate incrementally by editing next.config redirects array rather than running a custom server. Redirect rules use source/destination/permanent fields and support wildcards and regex while preserving serverless optimizations. Rewrites serve content from other local paths or external URL rewrites so old PHP endpoints can stay live while pages are migrated one by one, with the browser unaware when content comes from elsewhere.
AI-written summary · about
chapters (7)
- 0:00Intro
- 0:25Redirects
- 0:59Custom redirects
- 2:35Rewrite configuration
- 3:22Migrating a website
- 3:47Rewrites
- 4:26Outro








