fix: COPY init.sql into DB image, remove Next.js basePath for Traefik prefix stripping
This commit is contained in:
+4
-3
@@ -429,10 +429,11 @@
|
||||
window.location.hostname === '127.0.0.1' ||
|
||||
window.location.hostname.endsWith('.test')
|
||||
) {
|
||||
nextjsLink.href = 'http://localhost:3000/sistem-km-next';
|
||||
nextjsLink.href = 'http://localhost:3000';
|
||||
} else {
|
||||
// In production/campus server deployment, use the relative subfolder path
|
||||
nextjsLink.href = './sistem-km-next';
|
||||
// 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';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user