feat(ui): point the portal at Fusion via ui_gateway_url

Add var.ui_gateway_url so config.js can target the Fusion listener instead of the
backend /demo. Set to the Fusion /tokenize endpoint; the browser now runs the
full flow through the gateway (guardrail -> tokenize -> agent -> restore).
Requires Fusion to return CORS for the CloudFront origin (done).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 19:20:53 +10:00
parent 9626887ed7
commit fba56bf8f3
2 changed files with 16 additions and 3 deletions

View File

@@ -50,3 +50,11 @@ variable "agent_runtime_arn" {
type = string
default = ""
}
# Where the browser UI posts. Empty -> backend /demo. Set to the Fusion endpoint
# to run the portal through the gateway (Fusion must return CORS for the UI origin).
variable "ui_gateway_url" {
description = "Endpoint the UI posts to (empty = backend /demo round trip)."
type = string
default = ""
}