Last updated: Jun 17, 2022
Jun 17, 2022, 11:26 AM
Some frameworks do that for you like Next.js. Otherwise you could write a Node.js script which uses the JS client to fetch the data you want, and you write it on disk as JSON, yes.
Jun 17, 2022, 11:37 AM
Okay, sounds like a script is the way to go then – thanks!