From c2945880930cc3b6c0f9babbcedc43a72b8b3ca0 Mon Sep 17 00:00:00 2001 From: Jack MB Date: Wed, 25 Sep 2024 14:08:46 +0200 Subject: [PATCH] bugfix show pages in preview mode --- pages/radio/[slug].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/radio/[slug].tsx b/pages/radio/[slug].tsx index dcbd787f..6be2aa03 100644 --- a/pages/radio/[slug].tsx +++ b/pages/radio/[slug].tsx @@ -31,7 +31,7 @@ export default function Show({ ); } -export async function getStaticProps({ params, preview = true }) { +export async function getStaticProps({ params, preview = false }) { return { props: { preview, ...(await getRadioPageSingle(params.slug, preview)) }, };