Build problem
Ref.: https://github.com/nodejs/nodejs.org/issues/8442
# Build Problem
As said, currently the static compilation of all languages occupies tens of gigabytes and takes more than 20 minutes to be compiled by CI.
This indicates that there is complete pre-rendering without any kind of orchestration, something that is not very scalable if more language support is added.
There are numerous build orchestrators like Nx and Bazel, but they would be useless without a prior strategy on what should be built in advance. You are treating all pages as priority, giving the same priority to pages like English compared to less accessed pages like Italian.
There should be a control system so that less frequently accessed pages are only generated when requested, and pages with higher traffic are prioritized.
I recommend choosing a suitable orchestrator for the build, plus a decision algorithm to choose what should be prioritized or not. There are several market standards such as weighted scoring and Top-K selection.
关闭于 2026-03-18 1 条评论