-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
chore: upgrade to next 15 #7155
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Running Lighthouse audit... |
@amannn thanks for the heads-up! I believe I've adjusted everything accordingly, feel free if you still have suggestions :) |
These look like TypeScript issues due to duplicate versions of |
I have the feeling something was wrong with the package-lock.json? Deleting the file, regenerating and running specifically:
fixed all the issues (linting and builds are passing locally now) |
Hmm, @amannn is there something wrong with our config? The build shows https://nodejs-org-git-chore-nextjs-15-openjs.vercel.app/en but running locally with I also see that some translations (Header and Footer not working) |
// In this case we want to catch-all possible requests. This ensures that we always generate and | ||
// serve the OpenGrapgh images independently on the locale | ||
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams | ||
export const dynamicParams = true; | ||
|
||
// Enforces that this route is used as static rendering | ||
// @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic | ||
export const dynamic = ENABLE_STATIC_EXPORT ? 'force-static' : 'auto'; | ||
export const dynamic = 'auto'; |
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.
@bmuenzenmeyer we have an issue with this because this is the only endpoint failing build for static exports.
This endpoint is just incompatible with static exports. What now?
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.
This should also mean this whole time OG generation was supposed to be broken for static exports... Which we shouldn't break.
What should we do here?
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.
i see this had since changed - i am just now looking at it - lemme know if it's still a concern. the original implementation of next og work referenced tutorials that didn't really help much as it pertained to our combinations of use cases
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.
It is still a concern.
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.
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 fixing this!
8a8d701
to
a6e17e4
Compare
Everything seems to be working right now except:
|
Co-authored-by: Claudio Wunder <[email protected]>
@@ -15,7 +15,7 @@ | |||
"engines": { | |||
"node": "v20" |
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.
With this change, will Node.js >20 also be supported? IIRC the only issue was the with
/ assert
?
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.
Vercel just allow v20 for moment so I think we should stay on 20 for the moment.
This PR attempts to upgrade to Next.js 15 with the following changes:
next-intl
to the latest version, which required refactoring on its usage for compliancewith
instead ofassert