DEV Community

Discussion on: How freeCodeCamp.org uses the JAMstack + a single API server to help millions of people learn to code every month

Collapse
 
tvanantwerp profile image
Tom VanAntwerp

6,000+ pages sounds like it would be a pain to rebuild with each change. I've considered something like Gatsby for a large site I manage with mostly static content, but we've got 9,000+ posts and I'm concerned about the build times whenever someone realizes they made a small typo.

Is Gatsby smart enough to only build what changed, or does it build everything every time? And how long does that take?

Collapse
 
ben profile image
Ben Halpern

I have no idea, but it really should be smart enough to build what’s changed. Seems like fairly straightforward diffing.

Collapse
 
ahmadawais profile image
Ahmad Awais ⚡️

You can both cache the build inside of Gatsby and on Netlify. :)

Collapse
 
jel111 profile image
dumdumdev

This is more of a question than a statement. I thought that was what a React app was good at. Only building what had changed.

Collapse
 
dustinmatlock profile image
Dustin Matlock

Smashing Magazine switched from WordPress to a JAMstack: netlify.com/case-studies/smashing/

Collapse
 
tonyalaribe profile image
Anthony Alaribe

Try Hugo. Your 9000 page site will take a second to build. Most likely less.

Collapse
 
ossia profile image
Quincy Larson

Gatsby is pretty smart. Building has been slow in the past, but it's steadily getting faster.