Don't check null user on preview pages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fdfbce506e
commit
c09862c702
@ -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 || ''} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 || ''} />
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user