microblog/app/page.tsx
2022-11-06 21:07:22 +01:00

15 lines
269 B
TypeScript

import { getPosts } from '@/lib/getPosts';
import Posts from './posts';
export const revalidate = 10;
export default async function Page() {
const posts = await getPosts();
return (
<div className="space-y-6">
<Posts posts={posts} />
</div>
);
}