Logo
Get Started

Deployment Guide

Going production with Vercel.

RapidCore is built to be deployed on Vercel. Because it is a Monorepo using Turborepo, Vercel handles it natively.

Unified Deployment Strategy

RapidCore is a monorepo. For the best experience, we recommend deploying each application as a separate project on Vercel.

Application URLs & Ports (Local vs Prod)

| App | Local Port | Production URL (Example) | |-----|------------|-------------------------| | Landing | 3000 | https://rapidcore.io | | Web Starter | 3001 | https://app.rapidcore.io | | AI Studio | 3002 | https://ai.rapidcore.io | | Game SaaS | 3003 | https://game.rapidcore.io | | Docs | 3005 | https://docs.rapidcore.io |

Step-by-Step Vercel Deployment

  1. Import Repository: Import the root of your monorepo to Vercel.

  2. Project Settings for each App:

    • Framework: Next.js
    • Root Directory: apps/your-app-name
    • Build Command: cd ../.. && npx turbo run build --filter=your-app-name
    • Install Command: cd ../.. && pnpm install
  3. Required Environment Variables: Ensure the following are set in Vercel for all apps to enable unified navigation:

    • NEXT_PUBLIC_URL_LANDING
    • NEXT_PUBLIC_URL_WEB
    • NEXT_PUBLIC_URL_AI
    • NEXT_PUBLIC_URL_GAME
    • NEXT_PUBLIC_URL_DOCS

Production Checklist

  • [ ] NEXTAUTH_URL is set to your production domain (e.g., https://rapidcore.io).
  • [ ] NEXTAUTH_SECRET is a strong random string.
  • [ ] Database migrations are applied (prisma migrate deploy).
  • [ ] Stripe Webhook endpoint is updated to production URL.
  • [ ] Updated with the STRIPE_WEBHOOK_SECRET production key.

Supabase Production Configuration

When going live, you must enter actual production keys into Vercel instead of local test keys:

  1. Supabase Panel > Settings > API:
    • NEXT_PUBLIC_SUPABASE_URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY (For public access)
    • SUPABASE_SERVICE_ROLE_KEY (For server-side authorized operations only)
  2. Database Connection: Ensure the DATABASE_URL and DIRECT_URL fields are defined in the Vercel Environment Variables section.