This commit is contained in:
UltraLionFr
2025-07-29 05:44:36 +02:00
parent de600e78c3
commit dc9a286db3
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -1,16 +1,13 @@
import { auth } from "@/auth";
import Banner from "@/components/Banner";
import ProjectsTable, { Project } from "@/components/ProjectsTable";
import { prisma } from "@/lib/prisma";
import { notFound, redirect } from "next/navigation";
import { notFound } from "next/navigation";
type Props = {
params: { username: string };
};
export default async function UserProfilePage({ params }: Props) {
const session = await auth();
if (!session) return redirect("/");
const username = params.username;
const user = await prisma.user.findUnique({