-
Notifications
You must be signed in to change notification settings - Fork 79
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
Upgrade Next.js to v13 #5402
Upgrade Next.js to v13 #5402
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting but yeah that's unrelated let me throw that in another ticket here: #5432 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me codewise! Is the empty <a>
thing something you just picked up here or is it raising errors now in the new version of Next? Either way great you cleaned it up!
Ah it was part of the upgrade to remove the I imagine something changed under the hood there so that we no longer need it. |
FYI Merging as aapeli approved but it went away when I fixed the merge conflicts. |
To my best knowledge, I don't think they have plans to deprecate/remove support for the pages router, so an entire app conversion might be unnecessary? I'd probably start trying out the app routers for new routes only, although that probably need an entire app architecture re-think on how to use/not use React Query together with the app router. As things are, it feels like they conflict with each other 😅 Also soz for being a bit useless at reviewing PRs lately, but it seems like most of the changes are around link updates and tweaking the translation to work? Great job for powering through it! 🚀 |
No worries, I really appreciate you popping in at key moments! This was a good call out. What I liked about app router was it meant we could get rid of the next-18n-next package and there were some hackarounds we have that we'd be able to remove with it. But after thinking about it, there's so much important feature work to be done (like the map re-design that's blocking tons of stuff), so might be better to do less for now and return to it later if I want. The actual conversion to the app router was pretty straight-forward tbh! It was the i18 stuff that got really complicated, and made it hard to do incrementally. |
Closes #5154
Next v13 upgrade. I will do the v14 upgrade and conversion to the appRouter in a separate PR.
Migration Guide:
https://nextjs.org/docs/pages/building-your-application/upgrading/version-13
I needed to upgrade these packages as well for this:
This means you'll want to pay attention to translations and sentry while testing.
Web frontend checklist
yarn format
yarn lint --fix