Hey all I had sort of a basic question about the build environment/process and whether what I am doing locally would work on Netlify. I am looking to accomplish incremental builds by:
- During build save the a build timestamp in a local file
- Build outputs static html files in
build
directory generated from react scripts (similar to Gatsby) - On subsequent build, rename
build
tocache
, find all CMS data changed after the last build’s timestamp, generate new HTML only for those changed pages, copy unchanged HTML fromcache
to ‘build’, deletecache
.
Hopefully that makes sense. It requires there to be an updated build
directory and timestamp file present within the project structure before build. This works fine locally, but I’m not clear how these files would be stored on Netlify and/or how it would work with continuous deployment integration with git. Just wanted to get a more firm understanding here. Thanks.