Seeking guidance on how to handle updating a static json file stored in the assets directory in an Angular 7 project. The goal is to periodically fetch a json from a server, check for updates, and perform post-processing on the data in the static file (essentially creating a modified copy). I'm looking for the best approach to achieve this, with the requirement of only performing the update and post-processing once a day or week.
The current method of importing the static json is as follows:
import mlbPlayers from '../../assets/data/players-mlb.json';
I'd like to implement a solution similar to what's discussed in this thread, but tailored specifically for Angular.