* update * cleanup * fixing linting and tests errors * Refactor API Parameter Handling and Update Email Transport ✅ Updated API Route Parameters: - Changed parameter type from `{ id: string }` to `Promise<{ id: string }>` in PUT and DELETE methods for better async handling. ✅ Fixed Email Transport Creation: - Updated `nodemailer.createTransporter` to `nodemailer.createTransport` for correct transport configuration. ✅ Refactored AnalyticsDashboard Component: - Changed export from default to named export for better modularity. ✅ Enhanced Email Responder Toast: - Updated toast structure to include additional properties for better user feedback. 🎯 Overall Improvements: - Improved async handling in API routes. - Ensured correct usage of nodemailer. - Enhanced component exports and user notifications.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Portfolio Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Application
|
|
NODE_ENV=production
|
|
NEXT_PUBLIC_BASE_URL=https://dk0.dev
|
|
|
|
# Ghost CMS (removed - using built-in project management)
|
|
# GHOST_API_URL=https://your-ghost-instance.com
|
|
# GHOST_API_KEY=your-ghost-api-key
|
|
|
|
# Email Configuration (optional - for contact form)
|
|
MY_EMAIL=contact@dk0.dev
|
|
MY_INFO_EMAIL=info@dk0.dev
|
|
MY_PASSWORD=your-email-password
|
|
MY_INFO_PASSWORD=your-info-email-password
|
|
|
|
# Database (automatically set by Docker Compose)
|
|
# DATABASE_URL=postgresql://portfolio_user:portfolio_pass@postgres:5432/portfolio_db?schema=public
|
|
|
|
# Redis (automatically set by Docker Compose)
|
|
# REDIS_URL=redis://:portfolio_redis_pass@redis:6379
|
|
|
|
# Analytics
|
|
NEXT_PUBLIC_UMAMI_URL=https://analytics.dk0.dev
|
|
NEXT_PUBLIC_UMAMI_WEBSITE_ID=b3665829-927a-4ada-b9bb-fcf24171061e
|
|
|
|
# Security
|
|
# JWT_SECRET=your-jwt-secret
|
|
# ENCRYPTION_KEY=your-encryption-key
|
|
ADMIN_BASIC_AUTH=admin:your_secure_password_here
|
|
|
|
# Monitoring (optional)
|
|
# SENTRY_DSN=your-sentry-dsn
|
|
LOG_LEVEL=info
|