Hello there,
The follwing code runs but i get a typescript error on params.uid
inside getStaticProps using NEXTJS13.
export async function getStaticProps({
params,
locale,
previewData,
}: GetStaticPropsContext) {
const client = createClient({ previewData });
const navigation = await client.getByUID("navigation", "header", {
lang: locale,
});
const page = await client.getByUID("page", params.uid, { lang: locale });
return {
props: {
page,
navigation,
},
};
}
I’ve postet the whole page here : [Typescript Erro · GitHub] (https://[uid].tsx on github)