ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

bug/include resource tracking and serialization for all pages #1100

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Related Issue

resolves #1098

Summary of Changes

  1. Ended up being a bit of a refactor to make sure all pages had their resources tracked, not just the prerendered one
  2. Re-serialize graph.json to include page resources and frontmatter imports and delete graph copy plugin
  3. Add specs to cover SSR pages get properly bundled assets

TODO

  1. [x] Add test case
  2. [x] Try and keep graph.json light weight (maybe try and re-hydrate graph.json from resources.json)
  3. [ ] track refactoring opportunities into a new or existing issue
  4. [x] Handle those 500s as 404s instead (nice to have, otherwise make a ticket) - https://github.com/ProjectEvergreen/greenwood/issues/1102