Open-source launch flow for Kuest white-label prediction markets.
Public demo domain: https://launch.kuest.com
Main goal of this repo:
- Let people review and audit the full launch code
- Keep a guided path for non-developers when needed
- Support OAuth-first auth with token fallback
- Set market site name and connect wallet
- Connect Vercel + set Reown project id + choose/create Supabase database
- Deploy and track timeline logs
OAuthis the default UXAccess Tokenis available as fallback
Configure in .env.local:
NEXT_PUBLIC_VERCEL_AUTH_MODE=oauthortokenNEXT_PUBLIC_VERCEL_ALLOW_TOKEN_FALLBACK=true|false
If OAuth is enabled, set:
VERCEL_OAUTH_CLIENT_IDVERCEL_OAUTH_CLIENT_SECRET
- Copy
.env.exampleto.env.local - Fill
NEXT_PUBLIC_REOWN_APPKIT_PROJECT_ID - If using OAuth mode, fill Vercel OAuth client id/secret
- Run:
npm install
npm run devLocal URL: http://localhost:3000
- Set
NEXT_PUBLIC_APP_URLto your deployed domain (for examplehttps://launch.kuest.com) - OAuth callbacks are generated from request origin:
/api/oauth/vercel/callback/api/oauth/supabase/callback
- For Vercel project/deploy automation, Access Token mode is the stable path until broader OAuth API permissions are available
- Validates Supabase integration availability in Vercel
- Reuses existing Vercel project when slug already exists
- Imports repository/branch into Vercel
- Attaches existing Supabase or creates a new one via Vercel integration
- Sets environment variables and triggers deployment
- Returns deployment URL and timeline logs
POST /api/launch