Deployment Guide

Step-by-step guide to deploy your AI Accounting app to production

1
Database Setup (Supabase)
Configure your Supabase project and run migrations

Run Database Migrations

Execute the SQL scripts in order to create your database schema:

  • 001_create_profiles.sql
  • 002_create_expenses.sql
  • 003_create_invoices.sql
  • 004_create_subscriptions.sql

Environment Variables (Auto-configured)

NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
SUPABASE_SERVICE_ROLE_KEY
2
Payment Setup (Stripe)
Configure Stripe for subscription payments

Stripe Configuration

The Stripe integration provides automatic environment variable setup:

STRIPE_SECRET_KEY
STRIPE_PUBLISHABLE_KEY
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY

Subscription Tiers Available:

Free - $0/moStandard - $29/moPremium - $79/moCorporate - $199/mo
3
Deploy to Vercel
Push your app to production

Deployment Steps

  1. Click the "Publish" button in v0 to deploy your project
  2. Your code will be automatically deployed to Vercel
  3. All integrations (Supabase, Stripe) are already connected
  4. Database migrations will run automatically
  5. Your app will be live with a production URL
4
Custom Domain Setup
Connect your purchased domain to Vercel

Add Your Custom Domain

  1. Go to your Vercel project settings
  2. Navigate to the "Domains" tab
  3. Click "Add Domain" and enter your purchased domain (e.g., yourdomain.com)
  4. Vercel will provide DNS records to add to your domain registrar:
    • A Record: 76.76.21.21
    • CNAME Record (www): cname.vercel-dns.com
  5. Add these DNS records at your domain registrar (e.g., Namecheap, GoDaddy, Cloudflare)
  6. Wait for DNS propagation (can take 24-48 hours, usually faster)
  7. Vercel will automatically provision an SSL certificate

Common Domain Registrars

NamecheapGoDaddyCloudflareGoogle Domains

Supabase Redirect URL Update

After your domain is live, add your custom domain to Supabase Auth settings under "Redirect URLs":
https://yourdomain.com/**

5
Post-Deployment
Final configuration steps

Test User Authentication

Create a test account and verify email confirmation works

Verify Stripe Integration

Test a subscription purchase using Stripe test cards

Test Core Features

Add expenses, create invoices, and view reports

Monitor Performance

Check Vercel Analytics and Supabase dashboard for insights

Features Overview
What's included in your AI Accounting app

Core Features

  • Expense tracking with categories
  • Invoice management
  • Financial reports and charts
  • AI-powered insights

Business Features

  • Subscription payments (Stripe)
  • User authentication (Supabase)
  • Row-level security (RLS)
  • 4 pricing tiers
    Built with v0