Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidated Next.js 15 Codemods: Route Handlers, Fetch Requests, Server Config, and Migration Recipe #1348

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

nishant2253
Copy link

📚 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

Copy link

vercel bot commented Sep 28, 2024

@nishant2253 is attempting to deploy a commit to the Codemod Team on Vercel.

A member of the Team first needs to authorize it.

@nishant2253
Copy link
Author

@mohab-sameh please take a look at this pr and suggest any changes if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant