-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
meta: re-enable turbo prod/dev builds #7830
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
Conversation
Signed-off-by: Claudio W. <cwunder@gnome.org>
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.
Pull Request Overview
This PR re-enables the experimental --turbo flag for ISR-based production builds.
- Updated the build script in package.json to include the --turbo flag.
- Reverts the package.json build command to an experimental configuration for pilot testing.
cc @dario-piotrowicz I'm not sure how this affects our CF builds. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7830 +/- ##
=======================================
Coverage 75.47% 75.47%
=======================================
Files 101 101
Lines 8309 8309
Branches 218 218
=======================================
Hits 6271 6271
Misses 2036 2036
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Lighthouse Results
|
is this normal on the Playwright CI? https://github.com/nodejs/nodejs.org/actions/runs/15399546042/job/43328619313?pr=7830 |
Yes, but https://github.com/nodejs/nodejs.org/actions/runs/15399546042/job/43328619313#step:22:1 is not (If we increase the fetch depth we can make the git info wanting go away) |
sadgers |
Signed-off-by: Claudio W. <cwunder@gnome.org>
Thanks for the ping @ovflowd 🙂 From the looks of it the open-next adapter doesn't support that... 😓 we'll have to address this If you do want to proceed with it right now, for the meantime if you want we can disable the open-next playwright tests I'll look into prioritizing this as soon as we can 🙏 |
Can we make a |
Ack! Ignore that close, and the deleted comment above, I was on the wrong issue! |
good call, that's also a possibility yeah 🙂👍 (but that'd be a temporary solution at best I guess) |
OOC, is the PR fine as it is or do we need to change anything? |
Oh, it hooks into webpack? |
I think supporting both turbo (for CI and Vercel) and non-turbo for Cf and Playwright sounds good-ish to me :) |
Let's add a |
No, the fact is that the open-next adapter does some code manipulation on the output Next.js generates (using ast-grep). So the problem with turbo I believe is that the code generated by Next.js becomes different enough that some of the manipulations/patched that open-next does don't work anymore |
agreed 👍 Open-next allows you to define a build command to use: buildCommand So, changing the |
By the way, I've spoken with the Cloudflare open-next team and there is no current plan on starting to support the turbo build since it is an experimental feature and there are higher priority items the team is working/planning to work on. However after discussing this with the team and checking the Next.js docs, my understanding is that building the app with or without turbopack does not have any impact on the final application that gets shipped (i.e. the production site doesn't get a performance boost or anything like that). So I hope that for the time being we're all happy with just building the Cloudflare version of the app without using turbopack 🙂 does anyone has any concern with this? |
I'm 100% fine with that and that's what I even suggested :) |
@dario-piotrowicz Can you review? Once you approve, i think this can land. |
Ah ok, thanks a lot for waiting for me 🫶 |
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 😄
This PR re-enables
--turbo
for ISR-based builds. It is experimental, but we're pilot testing this feature.