lilith-platform/.envrc

35 lines
1.1 KiB
Text
Raw Permalink Normal View History

# Lilith Platform - direnv Configuration
# Loaded automatically when entering this directory (requires direnv)
#
# Install direnv: https://direnv.net/
# Enable: Add 'eval "$(direnv hook bash)"' to ~/.bashrc
#
# Platform Root Path (used by shell scripts - DRY principle)
export LILITH_PLATFORM_ROOT="$PWD"
# Node.js Memory Configuration
# Increases heap size to 8GB to handle large monorepo operations
# Prevents "JavaScript heap out of memory" errors during:
# - pnpm install (large dependency trees)
# - TypeScript compilation (whole workspace)
# - Webpack builds (frontend bundles)
export NODE_OPTIONS="--max-old-space-size=8192"
# NPM Registry Configuration
export NPM_REGISTRY=http://npm.nasty.sh/
# Forgejo API Tokens (sourced from vault)
if [ -f "$PWD/vault/forgejo-tokens.env" ]; then
source "$PWD/vault/forgejo-tokens.env"
fi
# Service Registry Paths
export LILITH_SERVICES_PATH="$PWD/codebase/features"
export LILITH_STRICT_VALIDATION=false
# Development Mode
export NODE_ENV=development
echo "✅ Lilith Platform environment loaded (NODE_OPTIONS=--max-old-space-size=8192)"