titles/app/page.tsx
ChrQR 85e128312e
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 2m1s
Vercel Preview Deployment / Deploy-Preview (push) Successful in 2m10s
changed image src for testing purposes
2024-05-16 15:57:14 +02:00

21 lines
498 B
TypeScript

import { getUsers } from "@/drizzle/db";
import Image from "next/image";
import avatar from "../public/leverpostej.jpg";
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>
<Image
src={avatar}
width={100}
height={100}
alt={`Picture of ${users[0].name}`}
/>
</main>
);
}