Open TravisAlmey opened 4 months ago
Hey @TravisAlmey I was able to pull the processed needs assessment data out of the current landing site repo pretty easily (see attached here). The trick is:
writeFileSync
at the top, and then add writeFileSync("./needs-data.json", JSON.stringify(needsDatas))
to line 164 right before the for loop that creates the gatsby nodesyarn build
to build the site, triggering Gatsby to source / process data for the site which will result in the needs data being written out to a file.
Research approaches to transfer data from Gatsby to Strapi
Possible approaches include:
CSV import
API endpoints
Database import
Custom importing scripting
[ ] Determine and document implentation