new playlist page
Deploy / deploy (push) Failing after 2m49s

This commit is contained in:
twotalesanimation
2026-06-07 19:33:59 +02:00
parent ecaa963055
commit 0be1818ff5
4 changed files with 418 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { auth } from "@/auth";
import { redirect } from "next/navigation";
import { db } from "@/lib/db";
import { PlaylistClient } from "./PlaylistClient";
export const metadata = { title: "Playlist" };
export default async function PlaylistPage() {
const session = await auth();
if (!session?.user) redirect("/login");
const projects = await db.project.findMany({
where: { status: { in: ["ACTIVE", "ON_HOLD"] } },
select: { id: true, name: true, code: true, projectType: true },
orderBy: { name: "asc" },
});
return <PlaylistClient projects={projects} />;
}