Files
openshell_controller/app/api/openshell/dashboard/open/route.ts
T
Mark McKeen 4de15bc8ab feat: proxy loopback-only OpenClaw dashboard through web UI
- add dashboard proxy route for local OpenClaw endpoint
- return proxiedUrl from dashboard open API
- update sandbox button to open proxied route in new tab
2026-03-29 09:59:15 -06:00

15 lines
475 B
TypeScript

import { NextResponse } from 'next/server'
import { getOpenClawDashboardUrl } from '../../../../lib/openshellHost'
export async function GET() {
const dashboardUrl = getOpenClawDashboardUrl()
return NextResponse.json({
ok: true,
dashboardUrl,
proxiedUrl: '/api/openshell/dashboard/proxy',
openInNewTab: true,
loopbackOnly: true,
note: 'OpenClaw Dashboard is loopback-only on the host, so the web UI uses a local proxy route to expose it.'
})
}