Navigated to /docs/cli/deploy-and-monitor

Deploy and monitor

Deploy provider-neutral static or Node output and inspect protected production metrics.

Build the deployment output

tavo build creates static assets and prerendered HTML under .tavo/build/client plus a generated Node production server at .tavo/build/server/start.mjs.

BASH
bashnpx tavo build
PORT=4174 node .tavo/build/server/start.mjs

Choose static hosting or Node

Publish .tavo/build/client when every required route can run as CSR or prerendered HTML. Use the generated Node server when SSR, loaders, actions, sessions, server routes, or monitoring require request-time execution.

  • Configure trusted hosts and canonical origin where the platform synthesizes request URLs.

  • Set CSP, secrets, body limits, and image allowlists for the deployment.

  • Rebuild before deploying; generated output is not application source.

Protect runtime monitoring

The generated server exposes monitor data only when TAVO_MONITOR_TOKEN is configured. The CLI sends the same token in an Authorization: Bearer header and can print one JSON snapshot or refresh continuously.

BASH
bashTAVO_MONITOR_TOKEN=$MONITOR_TOKEN node .tavo/build/server/start.mjs
npx tavo monitor --url https://app.example.com --token $MONITOR_TOKEN --once
npx tavo monitor --url https://app.example.com --token $MONITOR_TOKEN --json --once