I've crafted a separate file "src/fetcher/surveyWithSitemap", so I can import it and use it in getStaticPaths safely, and again in the actual page to get the data I am using an "astro" prefix in the function name: this way I can tell exactly which functions returns data that are safe to render!
0 likes 1 replies
?