Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,45 @@ EMAIL_FROM_NAME=TeachLink

# Application URL (for tracking links)
APP_URL=http://localhost:3000

# =============================================================================
# Feature Flags - Module Loading Configuration
# =============================================================================
# Set to 'false' to disable loading of specific modules at startup
# This reduces memory footprint and improves startup time
# =============================================================================

# Core Features (recommended to keep enabled)
ENABLE_AUTH=true
ENABLE_SESSION_MANAGEMENT=true

# Optional Feature Modules
ENABLE_PAYMENTS=true
ENABLE_AB_TESTING=false
ENABLE_DATA_WAREHOUSE=false
ENABLE_COLLABORATION=true
ENABLE_MEDIA_PROCESSING=true
ENABLE_BACKUP=true
ENABLE_GRAPHQL=false
ENABLE_SYNC=true
ENABLE_MIGRATIONS=true
ENABLE_RATE_LIMITING=true
ENABLE_OBSERVABILITY=true
ENABLE_CACHING=true
ENABLE_FEATURE_FLAGS=true
ENABLE_SEARCH=true
ENABLE_NOTIFICATIONS=true
ENABLE_EMAIL_MARKETING=true
ENABLE_GAMIFICATION=true
ENABLE_ASSESSMENT=true
ENABLE_LEARNING_PATHS=true
ENABLE_MODERATION=true
ENABLE_ORCHESTRATION=true
ENABLE_SECURITY=true
ENABLE_TENANCY=true
ENABLE_CDN=true

# Performance Tuning
# Set to 'true' to enable cluster mode (uses all CPU cores)
CLUSTER_MODE=false
CLUSTER_WORKERS=4
17 changes: 0 additions & 17 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#!/usr/bin/env sh
# .husky/pre-commit
#
# Runs automatically before every `git commit`.
# Exits non-zero to abort the commit if any check fails.
#
# What runs:
# lint-staged — Prettier (format) + ESLint (lint) on staged files only.
#
# To skip this hook in an emergency (NOT recommended for normal flow):
# git commit --no-verify -m "your message"
#
# To re-install hooks after a fresh `npm ci`:
# npm run prepare

. "$(dirname -- "$0")/_/husky.sh"

echo "⚡ Running pre-commit checks via lint-staged..."

npx lint-staged --config lint-staged.config.js
Expand Down
Loading
Loading