Eric Burel @ericburel.tech · Feb 22

I'll get back at this in a sec because in the meantime I received important informations from the nice people of Astro Discord server (thanks Oliver): in getStaticPaths, I can also pass some props, so I don't need to fetch the survey site map twice, I can get it from "Astro.props" Fancy 🤵‍♂️🍹

0 likes 1 replies

?

Replies

Eric Burel · Feb 22

Which in turns prompts the need to properly type "Astro.props", seems I need to call an inference utility type InferGetStaticProps<typeof getStaticPaths>" docs.astro.build/en/guides/ty...