You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -91,15 +80,21 @@ export default async function LocaleLayout({
91
80
{t('skipToContent')??'Skip to main content'}
92
81
</NextLink>
93
82
<SanityLive/>
94
-
{loadVisualEditing()}
83
+
{isPreview&&(
84
+
<>
85
+
<DraftModeToolbar/>
86
+
{/* Must first filter all conditional rendering props in the page content, otherwise the visual editing will not work correctly inside presentation tool. This is a big job and will be done later. For now, we will not render the visual editing inside the presentation tool.
returnnewResponse('Missing or invalid token',{status: 401})
21
-
}
22
-
23
25
constdraft=awaitdraftMode()
24
26
draft.enable()
25
27
28
+
/*
29
+
Must stega filter page content props used for conditional rendering in the presentation tool, otherwise the page will not render correctly in the presentation tool.
30
+
Something to do later as this will be a big job.
31
+
setting a cookie for sec fetch dest to identify the request as coming from the presentation tool and the web is previewed inside it. Works SSR.
0 commit comments