titles/app/page.tsx
ChrQR c39bf2fcc1
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m37s
got drizzle working. The error was the query.
2024-05-16 15:29:41 +02:00

13 lines
290 B
TypeScript

import { getUsers } from "@/drizzle/db";
export default async function Home() {
const users = await getUsers();
console.log(users);
const name = users[0] ? users[0].name : "guest";
return (
<main className="bg-black text-white">
<h1>Hello {name}!</h1>
</main>
);
}