Note: You are previewing the demo of Next.js Starter Kit by LaunchNext.dev
LaunchNext

Configuration

Configure LaunchNext for your project.

Environment Variables

Create a .env.local file in the root of your project:

# Auth
AUTH_SECRET=your-secret-key
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret

# Database
DATABASE_URL=your-database-url

# Stripe
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret

Authentication

LaunchNext uses better-auth for authentication. It supports:

  • Email + Password
  • Magic Link
  • Google OAuth
  • GitHub OAuth

Database

You can use any database supported by your ORM. We recommend:

  • PostgreSQL with Drizzle ORM
  • MongoDB with Mongoose

Payments

Stripe is preconfigured for:

  • One-time payments
  • Subscriptions
  • Webhook handling