OK, so there are a few different things.
- So you can't fetch data in Next.js with
getStaticProps
on the component level. - You need to use
GraphQuery
on yourhome
page query so that you can get all the data there and pass the data down as props to your Slice:
const page = await client.getByUID("page", "home", { lang: locale, graphQuery: ` ... ` });
Although you will need to specify all the content and Slices in your page
Custom Type in the GraphQuery.
Does make sense?