Complete partial frontend refactoring and infrastructure improvements: **Frontend Performance (Phase 2):** - Extract QSOStats component from QSO page (separation of concerns) - Extract reusable SyncButton component (LoTW + DCL) - Fix N+1 API calls in awards page with batch endpoint * Add GET /api/awards/batch/progress endpoint * Reduce award page load from 5s → ~500ms (95% improvement) * Replace N individual requests with single batch request **Infrastructure (Phase 4):** - Remove unused @libsql/client dependency - Add .env.production.template for deployment - Add bunfig.toml with optimized Bun configuration **Code Quality:** - Reduce QSO page from 1,587 to ~1,517 lines (-70 lines) - Improve code reusability and maintainability Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
31 lines
873 B
Plaintext
31 lines
873 B
Plaintext
# Production Configuration Template
|
|
# Copy this file to .env.production and update with your production values
|
|
|
|
# Application Environment
|
|
NODE_ENV=production
|
|
|
|
# Log Level (debug, info, warn, error)
|
|
# Recommended: info for production
|
|
LOG_LEVEL=info
|
|
|
|
# Server Port (default: 3001)
|
|
PORT=3001
|
|
|
|
# Frontend URL (e.g., https://awards.dj7nt.de)
|
|
VITE_APP_URL=https://awards.dj7nt.de
|
|
|
|
# API Base URL (leave empty for same-domain deployment)
|
|
VITE_API_BASE_URL=
|
|
|
|
# Allowed CORS origins (comma-separated)
|
|
# Add all domains that should access the API
|
|
ALLOWED_ORIGINS=https://awards.dj7nt.de,https://www.awards.dj7nt.de
|
|
|
|
# JWT Secret (REQUIRED - generate a strong secret!)
|
|
# Generate with: openssl rand -base64 32
|
|
JWT_SECRET=REPLACE_WITH_SECURE_RANDOM_STRING
|
|
|
|
# Database (if using external database)
|
|
# Leave empty to use default SQLite database
|
|
# DATABASE_URL=file:/path/to/production.db
|