server: ensure frontend has correct port for PTY websocket connections (#5898)

This commit is contained in:
Ashutosh Kumar 2025-12-22 17:26:23 +05:30 committed by GitHub
commit a05915ddc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 13 deletions

View file

@ -35,7 +35,7 @@ const url =
new URLSearchParams(document.location.search).get("url") ||
(location.hostname.includes("opencode.ai") || location.hostname.includes("localhost")
? `http://${host}:${port}`
: "/")
: window.location.origin)
export function App() {
return (