fix: COPY init.sql into DB image, remove Next.js basePath for Traefik prefix stripping

This commit is contained in:
Monarch055
2026-06-11 09:43:16 +07:00
parent 7e373a28a1
commit 42f06c1128
5 changed files with 20 additions and 13 deletions
+4 -3
View File
@@ -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>