import { BookmarkCard } from '@/components/bookmarkCard' import { bookmarkSchema } from '@/types' const getData = async () => { const res = await fetch(process.env.NEXT_APP_URL + '/api/bookmark', { method: 'GET', cache: 'no-store', }) const data = await res.json() return bookmarkSchema.array().parse(data) } export default async function DashboardPage() { const data = await getData() return (
{data.map((data, index) => ( ))}
) }