fix: update next-app link to use dedicated Coolify domain

This commit is contained in:
Monarch055
2026-06-11 10:09:48 +07:00
parent 0b3254526e
commit 269fcdd419
+3 -3
View File
@@ -431,9 +431,9 @@
) { ) {
nextjsLink.href = 'http://localhost:3000'; nextjsLink.href = 'http://localhost:3000';
} else { } else {
// In production (Coolify): Traefik routes /sistem-km-next -> next-app container. // In production (Coolify): next-app has its own dedicated domain.
// next-app now serves at root /, so we use the path-based URL on this same host. // All requests including /_next/static/ are routed correctly this way.
nextjsLink.href = window.location.origin + '/sistem-km-next'; nextjsLink.href = 'https://r48w884socg80c8sw0c04cow.203.24.51.230.sslip.io';
} }
}); });
</script> </script>