I have a nextjs site and would like to display a chart on it. Where should I put the data for this chart? The options I see are:
I guess for frequently updating data 3. is the best option right? What about for static data?
For data you will seldomly be updating you could add a csv and import the data as a Json file on application build using something like this.
This is probably the best solution for data you update often, but you will need to build your frontend application (Your next.js app) every time you update the csv. This is really not such a problem if you have a working CI/CD. (check out vercel for next.js if you havent)