fix: add allowedDevOrigins for Coolify domain to fix blank page in Next.js 16

This commit is contained in:
Monarch055
2026-06-11 10:34:56 +07:00
parent 269fcdd419
commit 3018ff63b0
+5
View File
@@ -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;