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.omaarrOP3y ago
Also can i use axios instead of the default fetch method?

Did you find this page helpful?