From 56bea91d107e192fbd4748d26d45eb904cfd9c3e Mon Sep 17 00:00:00 2001 From: colinislit Date: Fri, 12 Dec 2025 15:29:20 +0100 Subject: [PATCH] fix: Add dynamic export to overdracht/patients route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next.js requires explicit dynamic marking for routes using request.url 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/api/overdracht/patients/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/overdracht/patients/route.ts b/app/api/overdracht/patients/route.ts index 04a8e22..75562f3 100644 --- a/app/api/overdracht/patients/route.ts +++ b/app/api/overdracht/patients/route.ts @@ -2,6 +2,9 @@ import { NextRequest, NextResponse } from 'next/server'; import { createClient } from '@/lib/auth/server'; import type { PatientOverzicht, PatientOverzichtResponse } from '@/lib/types/overdracht'; +// Force dynamic rendering (uses request.url) +export const dynamic = 'force-dynamic'; + export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url);