-
Notifications
You must be signed in to change notification settings - Fork 47
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
NextJS: Upgrade From Pages to App #702
Comments
@kyleecodes please assign it to me. This one I would recommend to split it in several sub tasks/issues as follow:
For each migration, ideally I would include:
|
@eleanorreem or @annarhughes can you have a look to my previous comment? I would like to work on this issue. Thanks! |
Hey @boodland thank you for your patience. Since this is a more ambitious contribution, we recommend starting with a beginner issue first to familiarize yourself. |
Hi @kyleecodes, sure thing, I will be delighted to work on #918, but please keep me into account for this one if possible as I would love to do it. |
Thank you @boodland you have been assigned this issue! Support Chayn's mission? ⭐ Please star this repo to help us find more contributors like you! |
@eleanorreem We want to check what your input is on this? |
@boodland sorry for the delay and thank you for your patience. I was speaking with one of my team mates @annarhughes who has previously done this migration. They suggested these points:
Otherwise, all good to go. @boodland do you need me to create an issue for each step that you take? or are you happy to write up an issue for each page you migrate/ step that you take? Thanks again for your input. |
@eleanorreem and @annarhughes thanks for your feedback! I have been looking at point 1 and seems to me that the new Image component is already used as there are no references to the /next/legacy/image import, so all the imports are using the new one. For the link one I have tracked where it is used and is wrapped within the custom common/Link component which doesn't seem to pass an anchor element as child which is the change that can be avoid using the new Link component from Next.js 13. although I cannot say it 100% as it is referenced from many places but the ones I have checked are just using the Link component as value for the component property in other components, so I am going to assume point 1 is fine but keep an eye when doing the migration of the individual pages in case something can be changed related to them. With respect to point 5 migrating to new next/head and routing hooks I will include them in each page migration if possible, not sure if can be easily added as we will be creating a client page component to maintain consistency with pages approach and importing it within the page server component of the app route but I would say it should be fine to change both during the page migration. I will add comments about point 6, as proposed, in the follow up issue of how to approach the migration to server component if possible. @eleanorreem No need to create new issues for each sub item/issue, I have already done myself for the relocation of the store logic #1019 and I can do it for the rest that I will be working on but if you want to create them so they are all visible, please go ahead Let me know if there is anything I misunderstood. |
@boodland your comments makes sense for me. I haven't done the migration before and @annarhughes is off for a bit so go ahead and we can take it a ticket at a time! |
As per Chayn policy, after 30 days of inactivity, we will be unassigning this issue. Please comment to stay assigned. |
Overview
NextJS Apps is the upgraded version of NextJS Pages. We should leverage the additional features and benefits by upgrading Bloom's frontend to NextJS Apps.
Benefits of NextJS Apps include but not limited to: enhanced scalability from improved modular approaches, advanced routing capabilities, improved performance in server-side rendering and static site generation, built-in optimizations for high traffic.
Action Items
Note: Please document the changes to be made with the upgrades. If there are many or highly complex changes, we will open new issues for them.
Resources/Instructions
The text was updated successfully, but these errors were encountered: