Founderflow Logo

Deployment

Deploy your Founderflow Boilerplate to production with our comprehensive deployment guide. Vercel deployment is recommended for the best experience.

Vercel Deployment (Recommended)

1. Connect Repository

  • Link your GitHub repository to Vercel
  • Configure build settings (Next.js preset)
  • Set the root directory if needed

2. Environment Variables

Add all environment variables in the Vercel dashboard under Project Settings → Environment Variables:

Required Environment Variables
# Database
MONGO_URI

# Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY
CLERK_WEBHOOK_SIGNING_SECRET

# Payments (choose one or both)
STRIPE_SECRET_KEY
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
STRIPE_WEBHOOK_SECRET
LEMON_SQUEEZY_API_KEY
LEMON_SQUEEZY_STORE_ID
LEMON_SQUEEZY_WEBHOOK_SECRET

3. Deploy

  • Automatic deployments on git push to main branch
  • Preview deployments for pull requests
  • Custom domain configuration

Other Deployment Options

Netlify

Static site deployment with serverless functions

  • Static site generation
  • Serverless functions for API routes
  • Form handling and redirects

Railway

Full-stack deployment with database hosting

  • Full-stack application hosting
  • Built-in database hosting
  • Automatic deployments from Git

AWS

Enterprise-grade cloud deployment

  • EC2 for full control
  • Lambda for serverless
  • RDS for managed database

DigitalOcean

Simple and affordable cloud hosting

  • App Platform deployment
  • Managed databases
  • Load balancers and CDN

Production Checklist

Environment variables configured
Database connection established
Payment providers configured
Webhooks set up
Domain configured
SSL certificate active
Analytics tracking enabled
Error monitoring configured

Performance Optimization

Image Optimization

Next.js automatically optimizes images using the Image component

Bundle Splitting

Automatic code splitting for optimal loading performance

CDN Usage

Static assets served from global CDN for fast delivery

Caching Strategy

Optimized caching headers for better performance