Skip to content

Conversation

@avivkeller
Copy link
Member

@avivkeller avivkeller commented Dec 30, 2025

This is a really early draft. We had a bit of extra time after last week's monthly meeting, so we discussed the potential move from our custom MDX logic to @next/mdx. This PR isn't a "we are moving!", it's a brainstorming PR so see what that kind of change would look like...

In order to do so, a few things must be done:

  • The pages/ directory cannot be used, as Next.js will assume it's part of the pages router
    • Crowdin's config needs to be upgraded (crowdin.yml)
  • Remark plugins must support mdx, else they will not properly be imported by Next.js
  • Remark plugins must have serializable options (hence the require.resolve instead of just importing)

TODO:

  • Cloudflare
  • Next.js builds are over 4x slower (on Vercel, sometimes it just hangs :-/)

Note:
All markdown files were moved in 0ad73d6, and everything else is 8005acf-post.

@vercel
Copy link

vercel bot commented Dec 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nodejs-org Canceled Canceled Dec 30, 2025 4:57pm

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/web-infra @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@avivkeller
Copy link
Member Author

I'm aware reviewing this many files is impossible. Once I get everything passing, I will make this much more manageable. Right now, the goal was just to be in a position where a feature branch could be opened

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 78.57143% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.56%. Comparing base (2eb7fe7) to head (8005acf).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/site/next.helpers.mjs 60.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8490      +/-   ##
==========================================
- Coverage   73.73%   73.56%   -0.17%     
==========================================
  Files         108      107       -1     
  Lines        9210     9140      -70     
  Branches      312      307       -5     
==========================================
- Hits         6791     6724      -67     
+ Misses       2417     2414       -3     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ovflowd
Copy link
Member

ovflowd commented Dec 30, 2025

casual tuesday 1am (cest): claudio about to chill with YouTube
aviv: Imma gonna destroy this man's plans muahahaha

@avivkeller
Copy link
Member Author

avivkeller commented Dec 30, 2025

I think you might wanna go back to that YouTube... this is no where near ready 😅. On the silver lining, through the process of building this, I have several bug reports to send to Next.js.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 30, 2025

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 3.72 MB
New Total Size 3.08 MB
Delta -657.86 KB (-17.28%)

Changes

➕ Added Assets (16)
Name Size
.next/static/chunks/c81fb339cf8704eb.js 83.76 KB
.next/static/chunks/30264b8a5105abf2.js 209.83 KB
.next/static/chunks/f39b42480b6810fb.js 22.82 KB
.next/static/chunks/aa454a573870fa8a.js 7.65 KB
.next/static/chunks/d7e20b6111f3e408.js 205.09 KB
.next/static/chunks/4e3d2b7edf4009ac.js 27.60 KB
.next/static/chunks/46ad11aad96f3fc2.js 418.90 KB
.next/static/chunks/62b82b29045f6e15.js 101.75 KB
.next/static/chunks/eecce12434754489.js 101.75 KB
.next/static/chunks/e903fe157923fd7c.js 418.90 KB
.next/static/chunks/24502044dcee7023.js 27.60 KB
.next/static/chunks/aec2cbb73455297d.js 101.75 KB
.next/static/chunks/89a2541997ba477a.js 29.59 KB
.next/static/chunks/3fd8cc59dde23b0b.js 522.42 KB
.next/static/chunks/950454f3e9fa08ed.js 418.90 KB
.next/static/chunks/fbf19f8b7bfdea07.js 40.30 KB
➖ Removed Assets (16)
Name Size
.next/static/chunks/3cec017a7eed9983.js 83.76 KB
.next/static/chunks/a5b41f4ac0112c1c.js 209.83 KB
.next/static/chunks/9451cf7726702eea.js 22.82 KB
.next/static/chunks/15b2b91f84752b2e.js 205.09 KB
.next/static/chunks/5e2875a3694096bc.js 27.74 KB
.next/static/chunks/9808cd623048ec3a.js 420.20 KB
.next/static/chunks/0ca5a898d74e1320.js 101.75 KB
.next/static/chunks/cfe08bb0319e2089.js 101.75 KB
.next/static/chunks/42c9abc63853de02.js 420.20 KB
.next/static/chunks/340f0ef2ee3cd2f5.js 27.74 KB
.next/static/chunks/66c273edcad58c98.js 29.46 KB
.next/static/chunks/8288238ba8b20c26.js 561.22 KB
.next/static/chunks/d4eb2e6b148840cb.js 420.20 KB
.next/static/chunks/6b300a14476c7ff2.js 101.75 KB
.next/static/chunks/74fbea75b8b661b2.js 561.22 KB
.next/static/chunks/7bec94e88ee60b41.js 101.75 KB

@avivkeller
Copy link
Member Author

avivkeller commented Dec 30, 2025

-743.48 KB (-19.53%)

😲

I'm still figuring out where this is a good thing or a bad thing :/

@ovflowd
Copy link
Member

ovflowd commented Dec 30, 2025

I think you might wanna go back to that YouTube... this is no where near ready 😅. On the silver lining, through the process of building this, I have several bug reports to send to Next.js.

Imma gonna back to another lifetime 😆 -- Im out! HAHAHA

@ovflowd
Copy link
Member

ovflowd commented Dec 30, 2025

-743.48 KB (-19.53%)

😲

I'm still figuring out where this is a good thing or a bad thing :/

🌡️

@ovflowd
Copy link
Member

ovflowd commented Dec 30, 2025

image

@avivkeller
Copy link
Member Author

If I can get it to work, we should see a substantial size reduction on both the client and server build.... if I can get it to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants