Skip to content

Commit 6b2bdbc

Browse files
committed
chore(showcase/dashboard): plumb NEXT_PUBLIC_* build args in local compose
The dashboard image was being built with only `OPS_BASE_URL` set; the two other compile-time env vars used by the matrix view stayed unset: - NEXT_PUBLIC_POCKETBASE_URL — left at the dev fallback in production builds, which surfaces a "FATAL-CONFIG: NEXT_PUBLIC_POCKETBASE_URL was unset at build time" banner in the browser console and causes the matrix's PB SSE subscription to fail (no live updates). - NEXT_PUBLIC_SHELL_URL — left unset, so every Demo / Code link in the matrix renders as `about:blank#shell-url-missing`. Pin both at build time: - POCKETBASE_URL → http://localhost:8090 (host port the user's browser reaches; container-internal `pocketbase:8090` is unresolvable from outside the compose network). - SHELL_URL → http://localhost:3100 (langgraph-python integration host port; no shared "shell" service in the local stack).
1 parent 5034e83 commit 6b2bdbc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

showcase/docker-compose.local.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ services:
9898
context: ../
9999
dockerfile: showcase/shell-dashboard/Dockerfile
100100
args:
101+
# PocketBase URL the browser hits at runtime — pinned to the host
102+
# binding so the user's browser (not the container) can resolve it.
103+
NEXT_PUBLIC_POCKETBASE_URL: http://localhost:8090
104+
# Showcase shell URL the dashboard links to for Demo / Code /
105+
# docs-shell jumps. Points at the langgraph-python integration's
106+
# host port for now (no shared "shell" service in the local stack).
107+
NEXT_PUBLIC_SHELL_URL: http://localhost:3100
108+
# /api/ops/* rewrites here. There's no harness HTTP server in the
109+
# local stack, so this points back at the dashboard itself; the
110+
# rewrites will 404 but the matrix view reads from PocketBase
111+
# directly and doesn't depend on /api/ops.
101112
OPS_BASE_URL: http://localhost:3200
102113
image: showcase-dashboard:local
103114
container_name: showcase-dashboard

0 commit comments

Comments
 (0)