import type { Metadata } from 'next'; import Prose from 'components/prose'; export const runtime = 'edge'; export const revalidate = 43200; // 12 hours in seconds export async function generateMetadata({ params }: { params: { page: string }; }): Promise { // const page = await getPage(params.page); // if (!page) return notFound(); if (params) { } return { title: 'the happy ape', description: 'joy meets compassion' // openGraph: { // publishedTime: page.createdAt, // modifiedTime: page.updatedAt, // type: 'article' // } }; // return { // title: page.seo?.title || page.title, // description: page.seo?.description || page.bodySummary, // openGraph: { // publishedTime: page.createdAt, // modifiedTime: page.updatedAt, // type: 'article' // } // }; } export default async function Page({ params }: { params: { page: string } }) { // const page = await getPage(params.page); // if (!page) return notFound(); if (params) { } return ( <>

the happy ape

{`This document was last updated on ${new Intl.DateTimeFormat(undefined, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date())}.`}

{/*

{page.title}

{`This document was last updated on ${new Intl.DateTimeFormat(undefined, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(page.updatedAt))}.`}

*/} ); }