fix some build errors
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user