Skip to content
Docs Environment & hosting
Tech

Environment and self-hosting

Environment variables, build, and deploying the static site and the relay.

Environment variables

VariablePurpose
VITE_BUILDER_CODEBuilder code sent with Builder Connect
VITE_BUILDER_FEE_BPSFee per fill in basis points (0-100)
VITE_API_URLTrading API host
VITE_PRICE_URLMarket-data host
VITE_PRICE_WS_URLPrice stream
VITE_USER_WS_URLUser stream
STRIKE_API_PUBLIC_KEYWorker only: API wallet public key
STRIKE_API_PRIVATE_KEYWorker only: API wallet private key

Build and deploy

shell
npm install
npm run build   # dist/: landing, app, proof and every docs page

Deploy dist/ as a static site. On Vercel, vercel.json and api/rpc.ts add the RPC relay used for wallet balances. Source: GitHub(opens in a new tab).