You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to build a graph of all pages, Greenwood gets the metadata of SSR based pages, calling functions like getFrontmatter or reading page level configurations like prerender or isolation.
However the SSR route worker is not efficient as it could be since, it will just automatically run all the things, including just blindly generating the page using WCC
Basically, all your pages will get alllllllll those functions called, making your API requests, etc. Just for building the graph, nothing other than frontmatter is needed. All this stuff will get built anyone during the build so this is just duplicate / wasted effort.
Overview
In order to build a graph of all pages, Greenwood gets the metadata of SSR based pages, calling functions like
getFrontmatter
or reading page level configurations likeprerender
orisolation
.However the SSR route worker is not efficient as it could be since, it will just automatically run all the things, including just blindly generating the page using WCC
Details
Basically, all your pages will get alllllllll those functions called, making your API requests, etc. Just for building the graph, nothing other than frontmatter is needed. All this stuff will get built anyone during the
build
so this is just duplicate / wasted effort.This is related to some other issues as well
How do we account for options coming out of a page though?
#1206
So we'll definitely want to think of a way to refactor this so
develop
is a no-op, and this only happens once onbuild
.The text was updated successfully, but these errors were encountered: