- execute Docker/Kubectl from dashboard backend on host - add dashboard open endpoint and terminal probe endpoint - wire sandbox action buttons to backend-local helpers
14 lines
448 B
TypeScript
14 lines
448 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,
|
|
openInNewTab: true,
|
|
loopbackOnly: true,
|
|
note: 'OpenClaw Dashboard is loopback-only on the host. For remote browser access, add a reverse proxy route or rebind the gateway.'
|
|
})
|
|
}
|