Deployment

Deploy your PacBoiler app to Vercel.

Deployment Guide

We recommend deploying PacBoiler to Vercel for the best experience with Next.js.

1. Push to GitHub

Ensure your code is pushed to a GitHub repository.

git add .
git commit -m "Ready for deployment"
git push origin main

2. Import to Vercel

  1. Log in to Vercel.
  2. Click Add New > Project.
  3. Import your pacboiler repository.

3. Configure Environment Variables

Vercel will automatically detect that it's a Next.js project. You need to add your environment variables.

  1. Expand the Environment Variables section.
  2. Copy the contents of your .env.local file.
  3. Paste them into the Vercel input (Vercel allows pasting the entire file content at once).

Important:

  • NEXT_PUBLIC_APP_URL: Set this to your production domain (e.g., https://myapp.com).
  • NEXT_PUBLIC_SUPABASE_URL: Your Supabase Project URL.
  • NEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase Anon Key.
  • SUPABASE_SERVICE_ROLE_KEY: Your Supabase Service Role Key (found in Project Settings > API).

4. Deploy

Click Deploy. Vercel will build your application and deploy it.

5. Post-Deployment Checks

  1. Supabase URL Configuration: Go to your Supabase dashboard > Auth > URL Configuration. Add your production URL (e.g., https://myapp.com) to the Site URL and Redirect URLs.
  2. LemonSqueezy Webhooks: Update your LemonSqueezy webhook URL to point to your production domain: https://myapp.com/api/webhooks/lemonsqueezy.
  3. Google/GitHub OAuth: Add your production callback URL (https://<project-ref>.supabase.co/auth/v1/callback) to the authorized redirect URIs in Google Cloud Console and GitHub Developer Settings.

πŸŽ‰ Congratulations!

Your SaaS is now live!