Trust & ops

Deployment

Ship Splitpot as a static-friendly Next.js app. Configure public env vars carefully.

Production build

npm ci
npm run lint
npm run typecheck
npm run build
npm start

Environment variables

VariableRequiredNotes
NEXT_PUBLIC_EVM_RPC_URLRecommendedMust match USDt chain
NEXT_PUBLIC_USDT_ADDRESSFor on-chainERC-20 contract
NEXT_PUBLIC_USDT_DECIMALSNoDefault 6
NEXT_PUBLIC_USDT_SYMBOLNoDefault USDt
NEXT_PUBLIC_CHAIN_NAMENoUI label
NEXT_PUBLIC_EXPLORER_TX_URLNoTx link prefix
NEXT_PUBLIC_APP_URLNoDocumented; shares use window origin

Vercel

  1. Import the GitHub repository.
  2. Framework: Next.js (auto-detected).
  3. Set public env vars in Project Settings.
  4. Deploy production and hard-refresh once.
npx vercel link
npx vercel --prod

Post-deploy checks

  • / loads landing
  • /docs loads documentation
  • /app can create a wallet and sign unlock
  • Create pot and open share import on a second browser profile
  • If on-chain: deposit and explorer link appear after transfer
  • CI green on main

More detail

Repo guide: docs/DEPLOYMENT.md