-
-
Notifications
You must be signed in to change notification settings - Fork 106
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 to NextJS v15 #375
base: master
Are you sure you want to change the base?
Conversation
Application NextJS Upgrade to v15
🦋 Changeset detectedLatest commit: d1292c8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👷 Deploy request for github-socialify pending review.Visit the deploys page to approve it
|
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.
Thanks for opening the PR! Please follow the full NextJS 15 upgrade guide which includes upgrading to React 19.
Please review all the framework features and make adjustments to the app as needed.
Please recommend future improvements that can be adopted for NextJS after the initial upgrade.
Upgrade to React Js v19
Hi @wei, I have upgrade to React v19 with dependencies. |
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.
hello we're still missing these two items from the last review:
-
Please review all the framework features and make adjustments to the app as needed.
-
Please recommend future improvements that can be adopted for NextJS after the initial upgrade.
Could you comment on any new features or changes nextjs and react 19 brings that we should adopt or could benefit from in the project? Thank you!
btw also missing changeset file as seen in the first comment by changeset bot.
@@ -6,7 +6,7 @@ | |||
"license": "MIT", | |||
"repository": "https://github.com/wei/socialify.git", | |||
"scripts": { | |||
"dev": "next dev", | |||
"dev": "next dev --turbopack", |
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.
can you explain this change or link to the source?
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.
Turbopack I have used for incremental bundler optimized for JavaScript and TypeScript in Next.js and faster local development
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.
Thanks I see the blogpost at https://nextjs.org/blog/turbopack-for-development-stable is using --turbo
but your change is --turbopack
. Do you have documentation on the difference?
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.
Hi @wei, the --turbo
flag was initially used when Turbopack was in its experimental phase. Now, --turbopack
is stable and recommended for activating Turbopack in Next.js.
Main article: Turbopack for Development -> Turbo Engine: Core Concepts -> Getting Started: Turbo Documentation
Thank you!
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.
@shubhamkhan could you respond to my comment above?
@@ -71,5 +71,5 @@ | |||
"last 1 firefox version", | |||
"last 1 safari version" | |||
] | |||
} | |||
} |
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.
Please run linter before committing.
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.
Sure, I will do.
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.
Hey @shubhamkhan This is not yet resolved ^
Changeset added
Hi @wei,
|
Hello, thanks for the update, however, we're still missing these items from the last review:
Please click re-request review once these points have been addressed. |
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.
Please address previous outstanding comments. Thank you!
Review and implement NextJS and React features
Review and Implement NextJS and React features
Hi @wei, Please check Review and implement of Next.js and React features. Thanks you! |
Great! Please check outstanding comments above (I tagged you again in case you missed it) Please list out all the changes you have implemented with source links so we can get them fully reviewed and approved. Thank you! |
src/components/mainWrapper.tsx
Outdated
if (!response || !response.repository) { | ||
if (!response) { | ||
return | ||
} |
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.
Any reason to no longer redirect when response is falsy?
src/components/toaster.tsx
Outdated
className={`alert ${className} w-fit shadow-lg`} | ||
role="alert" | ||
aria-live="polite" | ||
aria-atomic="true" |
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.
What are these for? Could you link me the sources?
<> | ||
<Repo /> | ||
</> | ||
) |
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.
Any reason for this change?
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.
For maintaining coding structure
pages/api/graphql.ts
Outdated
@@ -20,6 +20,7 @@ const graphQLEndpoint = async (req: NextRequest) => { | |||
'content-type': 'application/json', | |||
}, | |||
body: req.body, | |||
cache: 'force-cache', |
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.
How does cache behave with POST requests? Could you help me understand? TY!
Review change to remove code
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.
Hi @wei, Can you review the updated code and validate, I run lint and test before commit. Thank You!
@@ -71,5 +71,5 @@ | |||
"last 1 firefox version", | |||
"last 1 safari version" | |||
] | |||
} | |||
} |
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.
Sure, I will do.
@@ -6,7 +6,7 @@ | |||
"license": "MIT", | |||
"repository": "https://github.com/wei/socialify.git", | |||
"scripts": { | |||
"dev": "next dev", | |||
"dev": "next dev --turbopack", |
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.
Hi @wei, the --turbo
flag was initially used when Turbopack was in its experimental phase. Now, --turbopack
is stable and recommended for activating Turbopack in Next.js.
Main article: Turbopack for Development -> Turbo Engine: Core Concepts -> Getting Started: Turbo Documentation
Thank you!
<> | ||
<Repo /> | ||
</> | ||
) |
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.
For maintaining coding structure
Application NextJS Upgrade to v15
This pull request upgrades the Next.js framework from the previous version to v15.
Please review the changes, and let me know if you have any questions or feedback.