Files
phaseflow/.env.example
Petru Paler ccbc86016d
Some checks failed
Deploy / deploy (push) Failing after 1m43s
Switch email provider from Resend to Mailgun and add cron scheduler
- Replace resend package with mailgun.js and form-data
- Update email.ts to use Mailgun API with lazy client initialization
- Add instrumentation.ts to schedule cron jobs (notifications :00, Garmin :30)
- Update tests for Mailgun mock structure
- Update .env.example with MAILGUN_API_KEY and MAILGUN_DOMAIN

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 19:37:24 +00:00

26 lines
786 B
Plaintext

# ABOUTME: Example environment variables for PhaseFlow.
# ABOUTME: Copy to .env and fill in your values.
# App
APP_URL=https://phaseflow.yourdomain.com
NODE_ENV=development
# PocketBase
# POCKETBASE_URL is for server-side (API routes, health checks) - set at runtime
# NEXT_PUBLIC_POCKETBASE_URL is for client-side (browser) - baked at build time
POCKETBASE_URL=http://localhost:8090
NEXT_PUBLIC_POCKETBASE_URL=http://localhost:8090
# Email (Mailgun)
MAILGUN_API_KEY=key-xxxxxxxxxxxx
MAILGUN_DOMAIN=yourdomain.com
EMAIL_FROM=phaseflow@yourdomain.com
# Encryption (for Garmin tokens)
# Generate with: openssl rand -hex 16
ENCRYPTION_KEY=your-32-character-encryption-key
# Cron secret (for protected endpoints)
# Generate with: openssl rand -hex 32
CRON_SECRET=your-cron-secret-here