diff --git a/src/app/clusters/[id]/edit/page.tsx b/src/app/clusters/[id]/edit/page.tsx index 8b9e19f..a4b9595 100644 --- a/src/app/clusters/[id]/edit/page.tsx +++ b/src/app/clusters/[id]/edit/page.tsx @@ -8,6 +8,8 @@ interface EditClusterPageProps { }>; } +export const dynamic = 'force-dynamic'; + export default async function EditClusterPage({ params }: EditClusterPageProps) { const { id } = await params; const cluster = await getClusterById(parseInt(id)); diff --git a/src/app/clusters/[id]/page.tsx b/src/app/clusters/[id]/page.tsx index 6bc8bf8..7b28fc2 100644 --- a/src/app/clusters/[id]/page.tsx +++ b/src/app/clusters/[id]/page.tsx @@ -11,6 +11,8 @@ interface ClusterDetailPageProps { }>; } +export const dynamic = 'force-dynamic'; + export default async function ClusterDetailPage({ params }: ClusterDetailPageProps) { const { id } = await params; const cluster = await getClusterWithCustomers(parseInt(id)); diff --git a/src/app/customers/[id]/edit/page.tsx b/src/app/customers/[id]/edit/page.tsx index b25dc34..ad86b55 100644 --- a/src/app/customers/[id]/edit/page.tsx +++ b/src/app/customers/[id]/edit/page.tsx @@ -9,6 +9,8 @@ interface EditCustomerPageProps { }>; } +export const dynamic = 'force-dynamic'; + export default async function EditCustomerPage({ params }: EditCustomerPageProps) { const { id } = await params; const [customer, clusters] = await Promise.all([ diff --git a/src/app/customers/[id]/page.tsx b/src/app/customers/[id]/page.tsx index a638de8..95720e8 100644 --- a/src/app/customers/[id]/page.tsx +++ b/src/app/customers/[id]/page.tsx @@ -14,6 +14,8 @@ interface CustomerDetailPageProps { }>; } +export const dynamic = 'force-dynamic'; + export default async function CustomerDetailPage({ params }: CustomerDetailPageProps) { const { id } = await params; const customer = await getCustomerById(parseInt(id)); diff --git a/src/app/customers/new/page.tsx b/src/app/customers/new/page.tsx index 8ba1e6f..370007e 100644 --- a/src/app/customers/new/page.tsx +++ b/src/app/customers/new/page.tsx @@ -2,6 +2,9 @@ import { notFound } from 'next/navigation'; import { CustomerForm } from '@/components/customers/customer-form'; import { listClusters } from '@/lib/actions/clusters'; +// Force dynamic rendering to ensure data is fetched at request time +export const dynamic = 'force-dynamic'; + export default async function NewCustomerPage() { const clusters = await listClusters(); diff --git a/src/app/releases/[id]/edit/page.tsx b/src/app/releases/[id]/edit/page.tsx index 377c891..fe01f98 100644 --- a/src/app/releases/[id]/edit/page.tsx +++ b/src/app/releases/[id]/edit/page.tsx @@ -8,6 +8,8 @@ interface EditReleasePageProps { }>; } +export const dynamic = 'force-dynamic'; + export default async function EditReleasePage({ params }: EditReleasePageProps) { const { id } = await params; const release = await getReleaseById(parseInt(id)); diff --git a/src/app/releases/[id]/page.tsx b/src/app/releases/[id]/page.tsx index a235fa9..4018a41 100644 --- a/src/app/releases/[id]/page.tsx +++ b/src/app/releases/[id]/page.tsx @@ -37,6 +37,8 @@ function getStatusColor(status: string) { return statusColors[status] || 'bg-slate-100 text-slate-800'; } +export const dynamic = 'force-dynamic'; + export default async function ReleaseDetailPage({ params }: ReleaseDetailPageProps) { const { id } = await params; const releaseId = parseInt(id);