netlify / explorers

https://explorers.netlify.com/
MIT License
261 stars 40 forks source link

Mission page should be statically generated #494

Open bencodezen opened 3 years ago

bencodezen commented 3 years ago

What needs fixed?

Missions page currently fetches all published missions on Sanity on each page load.

How do you propose it should be fixed?

We should move the logic for fetching into staticProps and out of contexts so that we don't fetch it on every load.

philhawksworth commented 3 years ago

Absolutely!

If we are hitting the content API at request time rather than build time we'll be breaking the atomic nature of builds, so this is really important to resolve. Good call out!