Don't check null user on preview pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobias 2024-07-11 20:29:31 +02:00
parent fdfbce506e
commit c09862c702
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const PreviewCatchAllPage = async ({ params }: { params: { path: string[] } }) =
cache: false, cache: false,
}), }),
]) ])
if (!user || !page) notFound() /* if (!user || !page) notFound() */
return <PreviewBlocks initialData={page} locale="" url={process.env.BASE_URL || ''} /> return <PreviewBlocks initialData={page} locale="" url={process.env.BASE_URL || ''} />
} }

View File

@ -17,7 +17,7 @@ const PreviewCatchAllPage = async ({ params }: { params: { path: string[] } }) =
cache: false, cache: false,
}), }),
]) ])
if (!user || !page) notFound() /* if (!user || !page) notFound() */
return <PreviewPostPage initialData={page} locale="" url={process.env.BASE_URL || ''} /> return <PreviewPostPage initialData={page} locale="" url={process.env.BASE_URL || ''} />
} }