Hello @itsalimanuel
You have changed the query method in your code. I think you are querying a singleton Custom Type is homepage.
The working code for me for this homepage is:
export async function getStaticProps({ previewData }) {
const client = createClient({ previewData })
const page = await client.getSingle('homepage')
console.log("page is", page.data)
return {
props: { page },
}
}
Now you need to hit the URL: http://localhost:3000/home
to see your homepage.
Thanks,
Priyanka