From 3018ff63b0ac9ff08818c45c3fccbd9ab54b2ee0 Mon Sep 17 00:00:00 2001 From: Monarch055 Date: Thu, 11 Jun 2026 10:34:56 +0700 Subject: [PATCH] fix: add allowedDevOrigins for Coolify domain to fix blank page in Next.js 16 --- sistem-km-next/next.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sistem-km-next/next.config.mjs b/sistem-km-next/next.config.mjs index 6f37036..2aeed37 100644 --- a/sistem-km-next/next.config.mjs +++ b/sistem-km-next/next.config.mjs @@ -3,6 +3,11 @@ const nextConfig = { // basePath removed: Coolify's Traefik strips the /sistem-km-next prefix before // forwarding to this container, so Next.js must respond at root /. // The Traefik path /sistem-km-next -> container / mapping handles routing. + + // Allow the Coolify deployment domain to access Next.js dev resources. + // Without this, Next.js 16 blocks all JS chunks from loading on non-localhost domains, + // causing a completely blank white page. + allowedDevOrigins: ['r48w884socg80c8sw0c04cow.203.24.51.230.sslip.io'], }; export default nextConfig;