Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4e57967
πŸš€ Production Readiness: Comprehensive Security, Monitoring & Performa…
Sep 5, 2025
cc8fb2e
πŸ”§ Fix GitHub Actions & Environment Setup
Sep 5, 2025
5a4a943
πŸ”§ Fix GitHub Actions Slack notifications
Sep 5, 2025
5fea72b
πŸ“§ Replace Slack notifications with Resend email alerts
Sep 5, 2025
613c22d
Fix GitHub Actions workflow issues
Sep 5, 2025
a6717cc
Fix Vercel rollback command
Sep 5, 2025
69ef228
Fix Supabase build error by making client creation lazy
Sep 5, 2025
7c9b08b
Fix remaining Supabase build errors
Sep 5, 2025
a197138
Fix final Supabase build error in admin-auth and backup
Sep 5, 2025
9bff952
Fix final Supabase build errors in certificates routes
Sep 5, 2025
d7d153a
Fix final Supabase build error in generate-certificate route
Sep 5, 2025
c271c5b
Fix final Supabase build error in upload-url route
Sep 5, 2025
44bf665
Fix final Supabase build error in admin tests route
Sep 5, 2025
219a648
Fix ALL remaining Supabase build errors - comprehensive scan complete
Sep 5, 2025
c22d9cb
Fix ALL remaining Supabase build errors - comprehensive scan complete…
Sep 5, 2025
23e15f0
Fix ALL remaining Supabase build errors - comprehensive scan complete…
Sep 5, 2025
91f088f
Fix ALL remaining Supabase build errors - FINAL comprehensive scan co…
Sep 5, 2025
f8cbbb1
Fix OPENROUTER_API_KEY build error - move environment variable check …
Sep 5, 2025
65d7407
Fix additional module-level environment variable initialization issues
Sep 5, 2025
ffc680d
Fix lib/services/activity.ts - module-level Supabase client initializ…
Sep 5, 2025
369e918
Fix GitHub Actions TruffleHog Docker image pull error
Sep 5, 2025
1b160a5
Fix app/verify/[memberId]/page.tsx - module-level Supabase client ini…
Sep 5, 2025
0adfba2
FINAL FIX: Resolve all remaining module-level Supabase client initial…
Sep 5, 2025
b62093b
Fix contact form - module-level Supabase client initialization
Sep 5, 2025
eadb3ad
Fix collaboration form - module-level Supabase client initialization
Sep 5, 2025
e6b10ec
Fix Vercel CLI rollback command syntax
Sep 5, 2025
b3f19e1
Fix mentor form - module-level Supabase client initialization
Sep 5, 2025
abc9bbc
Fix Vercel rollback project linking issue in GitHub Actions
Sep 5, 2025
2396bfd
Fix judges form - module-level Supabase client initialization
Sep 5, 2025
6231084
COMPREHENSIVE FIX: All remaining module-level Supabase client initial…
Sep 5, 2025
a400979
FIX: Premium page module-level Supabase client initialization
Sep 5, 2025
915872d
FINAL FIX: Complete resolution of all Supabase client initialization …
Sep 5, 2025
16ce203
FIX: Health check environment variables validation
Sep 5, 2025
dbb4cf4
FINAL FIX: Tests page module-level Supabase client initialization
Sep 5, 2025
6ab7eb5
FIX: OWASP ZAP Docker image issue in GitHub Actions
Sep 5, 2025
eb3ce8b
SECURITY FIX: Replace fragile XSS regex with DOMPurify sanitization
Sep 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# ===========================================
# Codeunia Environment Variables
# ===========================================
# Copy this file to .env.local and fill in your actual values

# ===========================================
# Core Application Settings
# ===========================================
NODE_ENV=development
NEXT_PUBLIC_SITE_URL=http://localhost:3000

# ===========================================
# Supabase Configuration
# ===========================================
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

# ===========================================
# Authentication & Security
# ===========================================
NEXTAUTH_SECRET=your_nextauth_secret_key
CSRF_SECRET=your_csrf_secret_key

# ===========================================
# Monitoring & Alerting System
# ===========================================
# Enable/disable alerting system
ALERTING_ENABLED=true

# Email alerting configuration
ALERT_EMAIL_RECIPIENTS=connect@codeunia.com
RESEND_API_KEY=your_resend_api_key

# Alert thresholds
ALERT_RESPONSE_TIME_THRESHOLD=5000
ALERT_ERROR_RATE_THRESHOLD=10
ALERT_CONSECUTIVE_FAILURES=3

# Optional: Webhook URLs for additional alerting
ALERT_WEBHOOK_URL=your_webhook_url
SLACK_WEBHOOK_URL=your_slack_webhook_url
DISCORD_WEBHOOK_URL=your_discord_webhook_url

# ===========================================
# Database & Caching
# ===========================================
# Redis configuration for caching
REDIS_URL=redis://localhost:6379

# ===========================================
# Payment Integration
# ===========================================
# Razorpay configuration
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret

# ===========================================
# AI Integration
# ===========================================
# OpenRouter API for AI features
OPENROUTER_API_KEY=your_openrouter_api_key

# ===========================================
# SEO & Analytics
# ===========================================
# Search engine verification codes
GOOGLE_SITE_VERIFICATION=your_google_verification_code
BING_VERIFICATION=your_bing_verification_code
YANDEX_VERIFICATION=your_yandex_verification_code
YAHOO_VERIFICATION=your_yahoo_verification_code

# ===========================================
# Build & Deployment
# ===========================================
# Vercel deployment
VERCEL_URL=your_vercel_url
VERCEL_GIT_COMMIT_SHA=your_git_commit_sha

# GitHub Actions
GITHUB_SHA=your_github_sha

# Build configuration
BUILD_ID=your_build_id
ANALYZE=false

# ===========================================
# Development & Testing
# ===========================================
# Puppeteer configuration
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
PUPPETEER_CACHE_DIR=/tmp/.cache/puppeteer

# Node.js memory configuration
NODE_OPTIONS=--max-old-space-size=4096

# ===========================================
# Security & Rate Limiting
# ===========================================
# Rate limiting configuration
RATE_LIMIT_ENABLED=true
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_MS=900000

# ===========================================
# Optional: Third-party Services
# ===========================================
# Cloudflare (if using Cloudflare for caching)
CLOUDFLARE_API_TOKEN=your_cloudflare_api_token
CLOUDFLARE_ZONE_ID=your_cloudflare_zone_id

# ===========================================
# Production-specific Settings
# ===========================================
# Uncomment and configure for production
# NODE_ENV=production
# NEXT_PUBLIC_SITE_URL=https://your-domain.com
# ALERTING_ENABLED=true
# REDIS_URL=redis://your-production-redis-url

# ===========================================
# CI/CD & Testing
# ===========================================
# Test environment URLs
STAGING_URL=https://your-staging-url.vercel.app
PRODUCTION_URL=https://your-production-url.vercel.app

# Lighthouse CI
LHCI_GITHUB_APP_TOKEN=your_lighthouse_ci_token

# Codecov
CODECOV_TOKEN=your_codecov_token

# Vercel deployment tokens (for GitHub Actions)
VERCEL_TOKEN=your_vercel_token
VERCEL_ORG_ID=your_vercel_org_id
VERCEL_PROJECT_ID=your_vercel_project_id
Loading
Loading