Managing data fetching in Astro

How do you guys manage data fetching in an astro SSG website. I have some pages which will reuse content (currently fetched from a CMS API). Should i add a fetch statement at the top of each component or breakup the data into another folder and import it from there while creating some utility script to refetch new data? Any good pointers on how i should approach this problem?
1 Reply
r.omaarr
r.omaarrOP2y ago
Also can i use axios instead of the default fetch method?
Want results from more Discord servers?
Add your server