.env.example•3.09 kB
# =============================================================================
# Environment Configuration Template
# Copy this file to .env and fill in your actual values
# =============================================================================
# -----------------------------------------------------------------------------
# Database Configuration (Neon PostgreSQL)
# -----------------------------------------------------------------------------
# Get these from your Neon Console: https://neon.tech
# Use "Pooled connection" for DATABASE_URL and "Direct connection" for DIRECT_URL
DATABASE_URL="postgresql://username:password@ep-example.neon.tech/neondb?sslmode=require"
# Alternative: For development with SQLite (not recommended for production)
# DATABASE_URL="file:./dev.db"
# -----------------------------------------------------------------------------
# Authentication - Clerk
# -----------------------------------------------------------------------------
# Get these from your Clerk Dashboard: https://clerk.com
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_your_publishable_key_here
CLERK_SECRET_KEY=sk_test_your_secret_key_here
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
# -----------------------------------------------------------------------------
# MCP Server Authentication
# -----------------------------------------------------------------------------
# OAuth client credentials for MCP server integration
MCP_CLIENT_ID=mcp-client
MCP_CLIENT_SECRET=your-secure-secret-here
# -----------------------------------------------------------------------------
# Application Configuration
# -----------------------------------------------------------------------------
# Base URL for your application (update for production deployment)
NEXTAUTH_URL=http://localhost:3000
NODE_ENV=development
# -----------------------------------------------------------------------------
# Webhook & Real-time Updates
# -----------------------------------------------------------------------------
# Generate with: openssl rand -base64 32
WEBHOOK_SECRET=your-webhook-secret-key-here
# WebSocket URL for real-time updates (update for production)
NEXT_PUBLIC_WS_URL=ws://localhost:3000
# -----------------------------------------------------------------------------
# Optional: Production-only variables
# -----------------------------------------------------------------------------
# Uncomment and configure for production deployment:
# VERCEL_URL=your-app.vercel.app
# NEXT_PUBLIC_APP_URL=https://your-app.vercel.app
# Monitoring & Analytics (optional)
# SENTRY_DSN=your-sentry-dsn
# POSTHOG_KEY=your-posthog-key
# -----------------------------------------------------------------------------
# Development Notes
# -----------------------------------------------------------------------------
# 1. Never commit real secrets to version control
# 2. Use different values for development, staging, and production
# 3. Rotate secrets regularly, especially webhook secrets
# 4. For Neon setup guide, see: NEON_SETUP.md
# 5. For production deployment, see: DEPLOYMENT_GUIDE.md