Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 75 forks source link

Build time optimizations - shutting off type inference #360

Closed mbifulco closed 3 years ago

mbifulco commented 3 years ago

Describe your PR

After some discussion with Jason Lengstorf from Netlify, I'm looking into a few different build-time optimizations. One of the suggestions was to shut off type inference for page context within gatsby, which cuts down on calculations done for each page of the site (13k and growing as of this PR).

More info here: https://www.gatsbyjs.com/docs/scaling-issues/#switch-off-type-inference-for-sitepagecontext

Related to perf Fixes n/a

Pages/Interfaces that will change

netlify build time 🤞

Screenshots / video of changes

n/a

Steps to test

  1. run netlify build - hopefully it's faster!

Additional notes