Epic: Move away from `pages` folder
@avivkeller ya está trabajando en esto.
Desde el 4/1/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Back in 2023/2024 when we were releasing the redesigned Node.js Website, we had to create a custom dynamic router around our infrastructure (Next.js) because pages folder structure is what @nodejs/collaborators were used to work with. This was intentionally done to not make the move to Next.js feel as big as an atomic move as it could be. This was also done to keep DX for existing collaborators simple.
Fast forwarding to now, release blog post generation is getting automated and releasers and other collaborators that have worked with us are used and more familiar with our Next.js environment.
The time has probably come. It's time to move away from our custom next.dynamic.mjs router (including all the bells-and-whistles) and adopt Next.js's built-in MDX, which uses mdx-rs, a Rust-based MDX parser/compiler (https://github.com/web-infra-dev/mdx-rs) and that at the moment also supports custom JS-based Rehype and Remark Plugins.
This work effectively means that:
- Our custom Frontmatter Engine for Layouts will be gone. Frontmatter would still exist, but Layouts are decided by the App router.
- i.e. /app/blog/layout.tsx, etc.
- each section (learn, download, etc) use their own layouts.
- Each page (.mdx) file under
/pageswould be moved under the respective folder under /app/ router - The use of catch-all segments would effectively be diminished (except for some rare situations such as blog category pages and pagination and the index page (that is also a blog category page)
- Adoption of Next.js's built-in MDX parser/compiler that is much faster and also enables support of some real cool stuff
- Our custom glob/mdx parsing and caching engine will be gone
Some of the benefits:
- Much faster compilation and dev runtime
- 1:1 (or almost 1:1, because there are still some magic routes such as blog categories) file-system to route
- More out of the box Next.js experience and easier to maintain and understand codebase
- Fast-refresh / HMR (Hot-Module-Reload) support for MDX
- Simplification of our OpenNext.js infrastructure. No more need of the hacky node:fs polyfills and whatnot
The cons?
- Poor @avivkeller is going to work overtime on this LOL (/s)
cc @nodejs/web-infra @nodejs/nodejs-website
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.9k
- Forks
- 6.5k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 32
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nodejs/nodejs.org
-
web-agenda
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nodejs/nodejs.org#9098 · 3 comentarios · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
nodejs/nodejs.org#8828 · 4 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
nodejs/nodejs.org#9166 · 3 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nodejs/nodejs.org#9140 · 10 comentarios · 3 reacciones ·
-
Option to close side navigations Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
nodejs/nodejs.org#9099 · 3 comentarios · 1 reacción ·
Todos los issues de nodejs/nodejs.org
Issues similares
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100