Skip to content

Upgrade Next.js from 14 to 15 #1531

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

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

Conversation

devin-ai-integration[bot]
Copy link

Upgrade Next.js from 14 to 15

This PR upgrades Next.js from version 14 to version 15 in the codemod repository.

Changes

  • Updated Next.js version in pnpm-workspace.yaml from ^14.2.3 to ^15.1.6
  • Updated eslint-config-next version from 14.1.0 to 15.1.6
  • Removed experimental.taint from next.config.mjs as it's now stable in Next.js 15
  • Updated synchronous API calls to use the new asynchronous pattern:
    • headers() in API routes
    • draftMode() in page components
    • searchParams usage in client components

Notes

There are some module resolution errors during build that need to be addressed:

  • Module not found: Can't resolve '@codemod.com/codemod-utils'
  • Module not found: Can't resolve '@codemod-com/utilities'

These errors are likely related to changes in Next.js 15's module resolution system or workspace package references.

Link to Devin run

https://app.devin.ai/sessions/85b69566461b4790a7841d1c92b662ba

Requested by: Alex Bit ([email protected])

Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented May 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
codemod ⬜️ Ignored (Inspect) May 18, 2025 6:15am

Copy link

pkg-pr-new bot commented May 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/codemod@1531

commit: 4fd953b

devin-ai-integration bot and others added 14 commits May 18, 2025 05:35
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.

0 participants