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;