fix: use server.localhost subdomain for server-ui (same /assets conflict)
All checks were successful
CI / build (push) Successful in 37s
CI / docker (push) Successful in 39s

Server UI assets also use absolute /assets/* paths that conflict with
the SPA catch-all. Same fix as Logto: Host-based routing at
server.localhost gives it its own namespace.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-05 17:48:11 +02:00
parent 0472528cd6
commit 3694d4a7d6
2 changed files with 2 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ export function Layout() {
<Sidebar.FooterLink
icon={<ObsIcon />}
label="View Dashboard"
onClick={() => window.open('/server/', '_blank', 'noopener')}
onClick={() => window.open(`http://server.${window.location.hostname}`, '_blank', 'noopener')}
/>
{/* User info + logout */}