mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 01:38:28 +00:00
16 lines
292 B
TypeScript
16 lines
292 B
TypeScript
import { db } from "@/lib/db"
|
|
import { headers } from "next/headers"
|
|
|
|
export default async function PostsPage() {
|
|
const posts = await db.post.findMany()
|
|
|
|
headers()
|
|
|
|
return (
|
|
<div>
|
|
{posts.map((post) => (
|
|
<div key={post.id}>{post.title}</div>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|