fix some build errors
This commit is contained in:
@@ -14,7 +14,11 @@ export async function generateStaticParams() {
|
||||
}
|
||||
}
|
||||
`);
|
||||
const { data } = await getClient().query(allEventSlugsQuery);
|
||||
const { data, error } = await getClient().query(allEventSlugsQuery, {});
|
||||
|
||||
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