15 lines
269 B
TypeScript
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>
|
|
);
|
|
}
|