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

This commit is contained in:
tobias 2024-07-11 21:06:38 +02:00
parent 9edb207991
commit ee243f7d20
2 changed files with 0 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import { notFound } from 'next/navigation'
const PreviewCatchAllPage = async ({ params }: { params: { path: string[] } }) => {
noStore()
const [page] = await Promise.all([
getCurrentUser(),
getDocument({
collection: COLLECTION_SLUG_PAGE,
path: params.path,

View File

@ -9,7 +9,6 @@ import PreviewPostPage from '@/components/PreviewPostPage'
const PreviewCatchAllPage = async ({ params }: { params: { path: string[] } }) => {
noStore()
const [page] = await Promise.all([
getCurrentUser(),
getDocument({
collection: COLLECTION_SLUG_POST,
path: params.path,