From 7cddc6fb084681121566c1166028ddc97f83a3ec Mon Sep 17 00:00:00 2001 From: Thomas Verleye Date: Tue, 18 Jan 2022 15:10:12 +0100 Subject: [PATCH] `preview` is undefined in `Post` This is a bug which makes it impossible to test the real time preview mode on blog posts. --- pages/posts/[slug].js | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/posts/[slug].js b/pages/posts/[slug].js index 4116077a..03535606 100644 --- a/pages/posts/[slug].js +++ b/pages/posts/[slug].js @@ -105,6 +105,7 @@ export async function getStaticProps({ params, preview = false }) { enabled: false, initialData: await request(graphqlRequest), }, + preview, }, }; }