Hi @Fares,
Sorry, but I don't think this is the issue. I tried to log the doc
on server like this:
export async function getStaticProps() {
const client = Client()
const doc = await client.getSingle('homepage', {})
console.log('doc:', doc)
return {
props: {
...doc
}
}
}
And it's still missing slices.
Please also check the similar thread. The OP also constructs slices from document's data:
const slices = document.results[0].data;
<SliceZone slices={slices} />
Thanks,
Denis