explorers icon indicating copy to clipboard operation
explorers copied to clipboard

Mission page should be statically generated

Open bencodezen opened this issue 5 years ago • 1 comments

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.

bencodezen avatar Mar 15 '21 15:03 bencodezen

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!

philhawksworth avatar Mar 15 '21 16:03 philhawksworth