A new building model #37939
Unanswered
zhenzhenChange
asked this question in
Ideas / Feature Requests
Replies: 2 comments
-
Because static pages are fundamentally different from modules, there are almost no dependencies between static pages and static pages, each of which can be considered independent. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just did a search and found some similarities to Deferred Static Generation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe the build mode is now
incremental
, right?The approximate steps are as follows:
So, assuming I know exactly what has changed, can I compile just those few files?
This way, I don't have to check the hash or read the previous cache to generate it again.
This scenario works for real, we use
contentful
to push a new article and after the push ahook
is triggered to execute the build.But because the number of articles is so large, the compilation cache alone is 7 to 8 gigabytes (in 7 languages).
Ninety percent of these articles are not modified, and although there are incremental builds, they still go through the hash check and then read the previous cache to regenerate them, a process that is also fast but limited to the build process.
Because we also have a deployment process, this means that 90% of the constant content needs to be transferred to the server for deployment, a process that is very time consuming and wastes machine performance due to regional differences.
So I'm wondering if it's possible to build
on-demand
? Or is there a proven solution currently available? Thanks.Beta Was this translation helpful? Give feedback.
All reactions