ChrQR
c39bf2fcc1
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m37s
13 lines
290 B
TypeScript
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>
|
|
);
|
|
}
|