initial commit
This commit is contained in:
21
app/page.tsx
Normal file
21
app/page.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import Image from "next/image";
|
||||
import { db } from "./connection";
|
||||
|
||||
|
||||
export default async function Home() {
|
||||
const user = await db.userRepository.findOneBy({email: "montheeric1@gmail.com"})
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div>{user?.email}</div>
|
||||
<div className="size-10">
|
||||
<Image
|
||||
alt="user avatar"
|
||||
src={user?.image ?? ""}
|
||||
className="object-cover"
|
||||
fill
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user