feat: update .env.local.example to use quotes for environment variables

chore: add @vitest/coverage-v8 dependency to package.json

chore: update pnpm-lock.yaml with new dependencies and versions

test: enhance env.test.ts to validate environment variable handling and defaults
This commit is contained in:
Max Kowalski
2025-06-27 19:27:09 +02:00
parent 49a75f5ede
commit f3f63943a8
5 changed files with 332 additions and 41 deletions

View File

@ -1,21 +1,21 @@
# Copy this file to .env.local and configure as needed
# NextAuth.js configuration
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_secret_key_here
NODE_ENV=development
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your_secret_key_here"
NODE_ENV="development"
# OpenAI API key for session processing
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_API_KEY="your_openai_api_key_here"
# Scheduler Configuration
SCHEDULER_ENABLED=true # Set to false to disable all schedulers during development
CSV_IMPORT_INTERVAL=*/15 * * * * # Every 15 minutes (cron format)
IMPORT_PROCESSING_INTERVAL=*/5 * * * * # Every 5 minutes (cron format) - converts imports to sessions
IMPORT_PROCESSING_BATCH_SIZE=50 # Number of imports to process at once
SESSION_PROCESSING_INTERVAL=0 * * * * # Every hour (cron format) - AI processing
SESSION_PROCESSING_BATCH_SIZE=0 # 0 = process all sessions, >0 = limit number
SESSION_PROCESSING_CONCURRENCY=5 # Number of sessions to process in parallel
SCHEDULER_ENABLED="true" # Set to false to disable all schedulers during development
CSV_IMPORT_INTERVAL="*/15 * * * *" # Every 15 minutes (cron format)
IMPORT_PROCESSING_INTERVAL="*/5 * * * *" # Every 5 minutes (cron format) - converts imports to sessions
IMPORT_PROCESSING_BATCH_SIZE="50" # Number of imports to process at once
SESSION_PROCESSING_INTERVAL="0 * * * *" # Every hour (cron format) - AI processing
SESSION_PROCESSING_BATCH_SIZE="0" # 0 = process all sessions, >0 = limit number
SESSION_PROCESSING_CONCURRENCY="5" # Number of sessions to process in parallel
# Example configurations:
# - For development (no schedulers): SCHEDULER_ENABLED=false