import type { Metadata } from 'next/types' import { CollectionArchive } from '@/components/CollectionArchive' import { PageRange } from '@/components/PageRange' import { Pagination } from '@/components/Pagination' import configPromise from '@payload-config' import { getPayload } from 'payload' import React from 'react' import PageClient from './page.client' export const dynamic = 'force-static' export const revalidate = 600 export default async function Page() { const payload = await getPayload({ config: configPromise }) const posts = await payload.find({ collection: 'posts', depth: 1, limit: 12, overrideAccess: false, select: { title: true, slug: true, categories: true, meta: true, }, }) return (