The end-to-end platform for creating, sharing, and running codemods with engines like jscodeshift, ast-grep, ts-morph, and more. Automate code migrations, cleanups, and refactors for you, your team, and the community. AI-powered and CLI-first.
This pull request consolidates all previous Next.js 15 codemods into one for easier review and merging. The included codemods are:
Update Route Handlers to Handle Caching
Refactors route handlers to manage caching for GET functions by adding the dynamic configuration option where needed.Link
Update Fetch Requests to Handle Caching
Updates fetch requests to introduce the cache option and allows global control of caching behavior using fetchCache in layouts or pages.Link
Configure staleTimes in next.config.js
Adds the staleTimes property in the next.config.js file to manage cache durations for dynamic and static pages.Link
Add Codemod Recipe for Next.js 15 Migration
A set of codemods to help migrate to Next.js 15, including updates to:Link
Route Handlers
Fetch requests
Stale times configuration in next.config.js
📚 Description
This pull request consolidates all previous Next.js 15 codemods into one for easier review and merging. The included codemods are:
Update Route Handlers to Handle Caching Refactors route handlers to manage caching for GET functions by adding the dynamic configuration option where needed.Link
Update Fetch Requests to Handle Caching Updates fetch requests to introduce the cache option and allows global control of caching behavior using fetchCache in layouts or pages.Link
Configure staleTimes in next.config.js Adds the staleTimes property in the next.config.js file to manage cache durations for dynamic and static pages.Link
Add Codemod Recipe for Next.js 15 Migration A set of codemods to help migrate to Next.js 15, including updates to:Link Route Handlers Fetch requests Stale times configuration in next.config.js