From cc926b27ec926a72f484eefd607c45d890c2c98c Mon Sep 17 00:00:00 2001 From: Xennis Date: Thu, 30 May 2024 22:08:44 +0200 Subject: [PATCH] [examples] Adjust custom page --- examples/nextjs/src/app/custom/page.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/nextjs/src/app/custom/page.tsx b/examples/nextjs/src/app/custom/page.tsx index c2fc613..ac03a42 100644 --- a/examples/nextjs/src/app/custom/page.tsx +++ b/examples/nextjs/src/app/custom/page.tsx @@ -1,18 +1,19 @@ import { Render } from "@react-notion-cms/render" import { getCachedPageContent } from "@/lib/fetchers" -const demoLocale = "en_US" +const demoLocales = "de" +const demoPage = "af2bbd48-fce9-471c-8c3c-21f2ac376e74" const formatDateFn = (date: Date) => { - return date.toLocaleDateString(demoLocale, { - month: "short", + return date.toLocaleDateString(demoLocales, { + month: "long", day: "numeric", year: "numeric", }) } export default async function CustomPage() { - const blocks = await getCachedPageContent(process.env.NOTION_BLOCK_ID!) + const blocks = await getCachedPageContent(demoPage) return (