fix some build errors

This commit is contained in:
2024-05-12 23:56:03 +02:00
parent ba43da1556
commit 780e2c7fed
3 changed files with 17 additions and 5 deletions

View File

@ -13,7 +13,11 @@ export async function generateStaticParams() {
}
}
`);
const { data } = await getClient().query(allVenueSlugsQuery);
const { data, error } = await getClient().query(allVenueSlugsQuery, {});
if (data === undefined || error) {
throw new Error("failed to generate static params");
}
return data?.pages.map((page: any) => ({
slug: page.slug,