Tech
Environment and self-hosting
Environment variables, build, and deploying the static site and the relay.
Environment variables
| Variable | Purpose |
|---|---|
VITE_BUILDER_CODE | Builder code sent with Builder Connect |
VITE_BUILDER_FEE_BPS | Fee per fill in basis points (0-100) |
VITE_API_URL | Trading API host |
VITE_PRICE_URL | Market-data host |
VITE_PRICE_WS_URL | Price stream |
VITE_USER_WS_URL | User stream |
STRIKE_API_PUBLIC_KEY | Worker only: API wallet public key |
STRIKE_API_PRIVATE_KEY | Worker only: API wallet private key |
Build and deploy
shell
npm install
npm run build # dist/: landing, app, proof and every docs pageDeploy 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).