-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
129 lines (115 loc) · 5.44 KB
/
Copy pathenv.example
File metadata and controls
129 lines (115 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Environment Variables Template for Vyoniq SaaS Platform
# Copy this file to .env.local and replace with actual values
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# PostgreSQL database connection string
# Format: postgresql://username:password@host:port/database_name
# Example: postgresql://postgres:password@localhost:5432/vyoniq
DATABASE_URL=postgresql://username:password@localhost:5432/vyoniq
# =============================================================================
# CLERK AUTHENTICATION
# =============================================================================
# Get these from your Clerk Dashboard at https://dashboard.clerk.com
# IMPORTANT: Use LIVE keys for production, TEST keys for development
CLERK_SECRET_KEY=sk_test_your_clerk_secret_key_here
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_your_clerk_publishable_key_here
CLERK_WEBHOOK_SECRET=whsec_your_clerk_webhook_secret_here
# Clerk Redirect URLs (recommended approach per Clerk documentation)
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/dashboard
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/dashboard
# =============================================================================
# STRIPE PAYMENT PROCESSING
# =============================================================================
# Get these from your Stripe dashboard at https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key_here
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key_here
STRIPE_WEBHOOK_SECRET=whsec_your_stripe_webhook_secret_here
# =============================================================================
# EMAIL SERVICE (RESEND)
# =============================================================================
# Get your API key from https://resend.com/api-keys
RESEND_API_KEY=re_your_resend_api_key_here
# =============================================================================
# APPLICATION CONFIGURATION
# =============================================================================
# Base URL for redirects and links
# CRITICAL: This must be set correctly in production
# Development: http://localhost:3000
# Production: https://vyoniq.com
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Alternative base URL variable (used in some parts of the app)
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# NextAuth Secret (for additional security)
NEXTAUTH_SECRET=your_nextauth_secret_here_generate_random_string
# =============================================================================
# MCP SERVER & AI INTEGRATION
# =============================================================================
# MCP Server API Secret for authentication
MCP_API_SECRET=your_mcp_api_secret_here_generate_random_string
# MCP Server Port (optional, defaults to 3001)
MCP_SERVER_PORT=3001
# =============================================================================
# SEO & ANALYTICS
# =============================================================================
# Google Analytics 4 Configuration
# Get your GA4 Measurement ID from Google Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
# Google Search Console Verification
# Get this from Google Search Console > Settings > Ownership verification
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=your_google_site_verification_code_here
# =============================================================================
# OPTIONAL CONFIGURATIONS
# =============================================================================
# Environment Detection (automatically set in production)
# NODE_ENV=production
# VERCEL_ENV=production (if using Vercel)
# =============================================================================
# PRODUCTION DEPLOYMENT CHECKLIST
# =============================================================================
# Before deploying to production, ensure you have:
#
# 1. DATABASE:
# - Set up PostgreSQL database
# - Run: pnpm prisma migrate deploy
# - Run: pnpm prisma generate
#
# 2. CLERK AUTHENTICATION:
# - Use production Clerk keys (not test keys)
# - Add your production domain to Clerk's "Authorized domains"
# - Configure "Allowed redirect origins" in Clerk Dashboard:
# * https://vyoniq.com
# * https://www.vyoniq.com
# - Set proper webhook endpoints in Clerk Dashboard
# - Configure CORS settings in Clerk Dashboard
# - Enable "Enhanced email matching" in Clerk Dashboard
# - Set appropriate session lifetime in Clerk Dashboard
#
# 3. STRIPE PAYMENTS:
# - Use live Stripe keys for production
# - Configure webhook endpoint: https://vyoniq.com/api/webhooks/stripe
# - Enable required webhook events in Stripe Dashboard
# - Test payment flows in production
#
# 4. EMAIL SERVICE:
# - Verify domain in Resend dashboard
# - Configure SPF, DKIM, and DMARC records
# - Test email delivery
#
# 5. APPLICATION:
# - Set NEXT_PUBLIC_APP_URL=https://vyoniq.com
# - Set NODE_ENV=production
# - Generate secure random strings for secrets
#
# 6. SEO & ANALYTICS:
# - Set up Google Analytics 4 property
# - Verify Google Search Console
# - Submit sitemap to search engines
#
# 7. SECURITY:
# - Use strong, unique passwords for all services
# - Enable 2FA on all service accounts
# - Regularly rotate API keys and secrets
# - Monitor application logs for security issues