fix: opencode web command

This commit is contained in:
Adam
2025-12-08 09:18:46 -06:00
parent e8ce113b7f
commit de415be4f6
2 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ export const WebCommand = cmd({
if (hostname === "0.0.0.0") {
// Show localhost for local access
const localhostUrl = `http://localhost:${server.port}`
const localhostUrl = `http://localhost:${server.port}/web`
UI.println(UI.Style.TEXT_INFO_BOLD + " Local access: ", UI.Style.TEXT_NORMAL, localhostUrl)
// Show network IPs for remote access
@@ -73,7 +73,7 @@ export const WebCommand = cmd({
// Open localhost in browser
open(localhostUrl.toString()).catch(() => {})
} else {
const displayUrl = server.url.toString()
const displayUrl = server.url.toString() + "web"
UI.println(UI.Style.TEXT_INFO_BOLD + " Web interface: ", UI.Style.TEXT_NORMAL, displayUrl)
open(displayUrl).catch(() => {})
}