AMERICAN STOCK CAR RACING LEAGUEASCRL.ONLINE ↗

Platform setup / Deployment guide

Connect Race Control.

The application uses a dedicated database and Discord sign-in. Your public ASCRL website stays on its existing hosting.

Production destination

racecontrol.ascrl.online

No service credentials are included in this repository. Complete these steps to activate your deployment.

Setup checklist

  1. Create a dedicated Supabase projectUse its SQL editor or Supabase CLI to apply the migrations in racecontrol/supabase/migrations in filename order.
  2. Configure Discord OAuthCreate an application in the Discord Developer Portal. Add the Supabase Auth callback URL. Put the Discord client ID and secret in Supabase’s Discord provider settings.
  3. Configure environment variablesCopy .env.example to .env.local for local development. Set the Supabase URL, public publishable key, and site URL. No service-role key is used.
  4. Deploy to VercelImport the feature branch and choose racecontrol as the root directory. Add the same variables. Set the site URL to https://racecontrol.ascrl.online.
  5. Finish redirects and the subdomainAdd the application’s /auth/callback URL to Supabase’s redirect allow list. Add the subdomain in Vercel and apply the exact DNS record Vercel provides.
  6. Sign in and bootstrap the platform ownerAfter your first Discord login, copy your account UUID from Settings and follow the owner bootstrap SQL in the README. Then create your first league.
Full setup & operating guide ↗