mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Sanity fixes
This commit is contained in:
@@ -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}
|
||||
>
|
||||
|
Reference in New Issue
Block a user