-
Notifications
You must be signed in to change notification settings - Fork 15
Upgrade all examples to use Next.js v15 #488
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot I do not see any code changes being committed. Is it done? |
You're correct - the changes weren't committed properly. I'll redo the upgrade now and ensure all changes are properly committed to the branch. |
|
@copilot Seems like there is an issue running git hooks. Ignore them - do not run git hooks - and push the code because right now there are still no changes |
- Updated Next.js from v14.2.5 to v15.0.3 in 3 examples - Updated @next/bundle-analyzer to v15.0.3 - Changed next-roots to use local package (link:../../) - Added preinstall scripts to build root package - Updated router files to export getPageHref() and use Router.getLocale() - Updated all page components for Next.js v15 API: - PageProps now uses locale instead of pageHref - params is now a Promise requiring await - Updated type names (GeneratePageStaticParamsProps) Files changed: 33
Done! Committed and pushed all changes using |
Summary
Upgraded all 3 example applications to Next.js v15.0.3.
Changes Made
Package Updates (3 examples):
^14.2.5→^15.0.3^14.2.5→^15.0.3^3.11.x→link:../../(use local package for type compatibility)preinstallscripts to build root package before example installationrootsscripts to use local CLICode Updates for Next.js v15 API Compatibility:
getPageHref()and useRouter.getLocale()directlylocaleprop instead ofpageHrefparamsis now a Promise type requiring awaitGenerateStaticParamsProps→GeneratePageStaticParamsProps)Examples Updated:
This pull request was created as a result of the following prompt from Copilot chat.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.