Sanity fixes

This commit is contained in:
Henrik Larsson
2023-08-21 08:13:13 +02:00
parent f8183a5a69
commit 1baa3c1f8d
8 changed files with 64 additions and 38 deletions

View File

@@ -39,10 +39,13 @@ export default async function IndexPage({ params }: HomePageParams) {
notFound();
}
console.log('Preview:', draftMode().isEnabled);
return (
<LiveQuery
enabled={draftMode().isEnabled}
query={homePageQuery}
params={{ locale: params.locale }}
initialData={data}
as={HomePagePreview}
>