fix: force dynamic rendering for portal page to prevent build-time DB access
This commit is contained in:
@@ -2,6 +2,9 @@ import { prisma } from "@/lib/db";
|
||||
import { redirect } from "next/navigation";
|
||||
import PortalClient from "./PortalClient";
|
||||
|
||||
// Force dynamic rendering - this page needs database access
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default async function PortalPage() {
|
||||
const organization = await prisma.organization.findFirst();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user