Exclude /bibles/ and /scripts/ folders from Next.js builds

Major performance optimization:
- Completely exclude /bibles/ (7GB+) and /scripts/ directories from webpack processing
- Add watchOptions to ignore these directories during development
- Install ignore-loader to skip large data files
- Update .nextignore with comprehensive exclusion patterns
- This should reduce build memory usage from 15GB to ~2-4GB

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-24 08:16:22 +00:00
parent cce9016e22
commit fb4959a550
5 changed files with 100 additions and 1 deletions

22
.nextignore Normal file
View File

@@ -0,0 +1,22 @@
# Exclude entire directories from Next.js processing
bibles/
bibles/**/*
scripts/
scripts/**/*
# Ignore large binary files
*.zip
*.tar.gz
# Ignore temporary files
*.tmp
*.temp
# Ignore backup files
*.backup
*_backup.csv
*_backup.json
# Ignore other large data files
*.sql
*.csv