AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Deploy Script to generate the backend cache #163

Closed nozomione closed 10 months ago

nozomione commented 1 year ago

Context

Related issue: #208

As with the existing refine.bio, we want to generate the backend cache in the project folder on pre-build which can be used by several components (e.g., about, footer).

Problem or idea

Implement a pre-build script to synchronously generate the backend cache in JSON format and write them out to a file (currently named as apiData.js) in the project folder.

Solution or next step