15 lines
274 B
TypeScript
15 lines
274 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 pt-6">
|
|
<Posts posts={posts} />
|
|
</div>
|
|
);
|
|
}
|