fix: update next-app link to use dedicated Coolify domain
This commit is contained in:
+3
-3
@@ -431,9 +431,9 @@
|
||||
) {
|
||||
nextjsLink.href = 'http://localhost:3000';
|
||||
} else {
|
||||
// In production (Coolify): Traefik routes /sistem-km-next -> next-app container.
|
||||
// next-app now serves at root /, so we use the path-based URL on this same host.
|
||||
nextjsLink.href = window.location.origin + '/sistem-km-next';
|
||||
// In production (Coolify): next-app has its own dedicated domain.
|
||||
// All requests including /_next/static/ are routed correctly this way.
|
||||
nextjsLink.href = 'https://r48w884socg80c8sw0c04cow.203.24.51.230.sslip.io';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user