fix: force dynamic rendering on pages with database access to fix build
This commit is contained in:
@@ -4,6 +4,10 @@ import { redirect } from "next/navigation";
|
||||
import LoginClient from "@/components/LoginClient";
|
||||
import { getSession } from "@/app/actions/auth";
|
||||
|
||||
// Force dynamic rendering - this page needs database access
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
// Verifica se o usuário já está logado
|
||||
const session = await getSession();
|
||||
|
||||
@@ -2,6 +2,9 @@ import { prisma } from "@/lib/db";
|
||||
import { redirect } from "next/navigation";
|
||||
import SetupClient from "./SetupClient";
|
||||
|
||||
// Force dynamic rendering - this page needs database access
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default async function SetupPage() {
|
||||
// Verifica se já existe alguma organização cadastrada
|
||||
const existingOrg = await prisma.organization.findFirst();
|
||||
|
||||
Reference in New Issue
Block a user