The page takes ages to build (in both dev and prod) because our node layout is not ideal.
Any changes requires whole schema rebuild, because our navigation queries all possible routes via GraphQL and filters them on render. This filtering should happen during schema query instead:
The page takes ages to build (in both dev and prod) because our node layout is not ideal.
Any changes requires whole schema rebuild, because our navigation queries all possible routes via GraphQL and filters them on render. This filtering should happen during schema query instead:
https://github.com/operate-first/operate-first.github.io/blob/02b83ad2dd9d3d4031d3e9e93593164f3f4a9309/src/components/Layout/NavSidebar.js#L58-L75
Should be something like:
for that we need to refactor
gatsby-node.js
and enrichnavItems
with basePath property.