This commit is contained in:
2025-04-07 19:04:04 +02:00
parent b91161da3a
commit 0ad70b3c7d

View File

@@ -1,10 +1,18 @@
import Link from "next/link";
import { db } from "~/server/db";
export default function HomePage() {
export default async function HomePage() {
const posts = await db.query.posts.findMany()
return (
<main className="flex min-h-screen flex-col items-center justify-center bg-black text-white">
<div>
Hello World
{posts.map((post) => {
return (
<div key={post.id}>
{post.name}
</div>
)
})}
</div>
</main>
);