mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
fix: debug prisma client
This commit is contained in:
parent
6a44ab9c33
commit
d6a463732d
1 changed files with 13 additions and 0 deletions
13
app/posts/page.tsx
Normal file
13
app/posts/page.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { db } from "@/lib/db"
|
||||
|
||||
export default async function PostsPage() {
|
||||
const posts = await db.post.findMany()
|
||||
|
||||
return (
|
||||
<div>
|
||||
{posts.map((post) => (
|
||||
<div key={post.id}>{post.title}</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue