DEV Community

Discussion on: Understanding Gatsby's Lifecycle

Collapse
 
karataev profile image
Eugene Karataev

Great post, finally the explanation of of gatsby-*.js files.
But I still didn't get the difference between gatsby-node and gatsby-ssr. They seem to do the same job - generate a static page for the end user. Why split these hooks into two files?

Collapse
 
thealemazing profile image
Alex

As I understand, the different between node and ssr is about layers. Imaging gatsby was not a building tools but a server with node as backend and have a ability to do ssr.