import { allBlogs } from "@/.contentlayer/generated"; import { Avatar, Card, Text } from "@/components/retroui"; import Image from "next/image"; import Link from "next/link"; import React from "react"; import { format } from "date-fns"; import { sdk } from "@/lib/payload" type Post = { id: number, title: string, slug: string, publishedAt: string, excerpt: string, featuredImage: { url: string, alt: string }, } async function page() { const res = await fetch("https://cms.retroui.dev/api/posts/published", { method: 'GET', credentials: 'include', next: { revalidate: 60, }, }) const posts = await res.json() return (