mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
fix: opencode web command
This commit is contained in:
@@ -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(() => {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user