TaskFiDocs

Frontend Deployment

The dashboard is a pure static build (Vite) and is hosted on Cloudflare Pages. There is nothing to wire up beyond the env vars.

Build

bash
cd taskfi-dash
npm install
npx vite build
# Output: dist/

Cloudflare Pages env vars

VariablePurpose
VITE_API_URLBackend base URL (e.g. https://api.taskfi.xyz).
VITE_CHAIN_ID8453 for Base mainnet, 84532 for Sepolia.
VITE_RPC_URL_BASE_MAINNETRPC endpoint for mainnet reads.
VITE_RPC_URL_BASE_SEPOLIARPC endpoint for Sepolia reads.
No baked addresses
Contract addresses are not env vars on the front. They are fetched at boot from /api/public/config. To switch deployments, only the backend needs to change.

Subdomains

  • App: https://app.taskfi.xyz — main dashboard.
  • Docs: this site.
  • Landing: taskfi/taskfi-landing, also shipped on Cloudflare Pages.

Preview deployments

Each Cloudflare Pages preview gets a unique <hash>.taski-app.pages.dev URL. The backend's SIWE check matches against the configured domain list and accepts subdomains automatically, so previews work out of the box without adding a new domain per build.