- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard. - guardrail-cli: extracted pure helpers into util.rs (split in progress). - 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs. - dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Deploying the Dashboard to Vercel
The Guardrail dashboard is a Next.js 16 app in dashboard/. The
Rust engine, API, and analytics are not deployed to Vercel — only the
read-only dashboard is. It talks to a running guardrail-api over HTTP.
One-time project setup
- Import
github.com/caelum0x/guardrailinto Vercel. - Set Root Directory to
dashboard(Project → Settings → General → Root Directory). This is required because the Next.js app lives in a subdirectory; Vercel then readsdashboard/vercel.json. - Framework preset: Next.js (auto-detected).
- Environment variables (Project → Settings → Environment Variables):
NEXT_PUBLIC_API_URL— the public URL of yourguardrail-api(e.g.https://api.your-host.example). The dashboard fetches the read-only API from this base. With no value it falls back tohttp://localhost:8080for local dev.
Continuous deployment
With the GitHub integration connected, every push to main triggers a
production deployment (git.deploymentEnabled.main in dashboard/vercel.json).
Pull requests get preview deployments automatically.
Manual deploy (optional)
From a machine where you've run vercel login:
cd dashboard
vercel --prod
Notes
- The dashboard is read-only: it never holds keys or signs transactions (self-custody stays with TWAK + the operator). It only renders what the API exposes.
- For a zero-dependency alternative that needs no build, see the static cockpit
in
clients/web-lite/— openindex.htmldirectly.