From ee243f7d20ae3cc9c6c6d3e280e0e771a53432c4 Mon Sep 17 00:00:00 2001 From: tobias Date: Thu, 11 Jul 2024 21:06:38 +0200 Subject: [PATCH] Don't fetch user on preview pages --- src/app/(app)/pages/preview/[[...path]]/page.tsx | 1 - src/app/(app)/posts/preview/[[...path]]/page.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/app/(app)/pages/preview/[[...path]]/page.tsx b/src/app/(app)/pages/preview/[[...path]]/page.tsx index 93307ee..3f6712b 100644 --- a/src/app/(app)/pages/preview/[[...path]]/page.tsx +++ b/src/app/(app)/pages/preview/[[...path]]/page.tsx @@ -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, diff --git a/src/app/(app)/posts/preview/[[...path]]/page.tsx b/src/app/(app)/posts/preview/[[...path]]/page.tsx index d3ff82f..6e7821f 100644 --- a/src/app/(app)/posts/preview/[[...path]]/page.tsx +++ b/src/app/(app)/posts/preview/[[...path]]/page.tsx @@ -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,