This commit is contained in:
@@ -5,6 +5,9 @@ import { ArrowLeft } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { TransmittalForm } from "@/components/transmittal/transmittal-form";
|
||||
|
||||
// Force dynamic rendering to prevent build-time prerendering issues
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default function CreateTransmittalPage() {
|
||||
return (
|
||||
<section className="space-y-6 max-w-4xl">
|
||||
|
||||
@@ -36,7 +36,13 @@ const nextConfig = {
|
||||
},
|
||||
*/
|
||||
|
||||
// 5. Security Headers (แนะนำ)
|
||||
// 5. Experimental: Handle client component static generation issues
|
||||
experimental: {
|
||||
// Disable static optimization for client components that cause build failures
|
||||
missingSuspenseWithCSRBailout: false,
|
||||
},
|
||||
|
||||
// 6. Security Headers (แนะนำ)
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user