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 main2. Import to Vercel
- Log in to Vercel.
- Click Add New > Project.
- Import your
pacboilerrepository.
3. Configure Environment Variables
Vercel will automatically detect that it's a Next.js project. You need to add your environment variables.
- Expand the Environment Variables section.
- Copy the contents of your
.env.localfile. - 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
- 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. - LemonSqueezy Webhooks: Update your LemonSqueezy webhook URL to point to your production domain:
https://myapp.com/api/webhooks/lemonsqueezy. - 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!