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:
22
.nextignore
Normal file
22
.nextignore
Normal 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
|
||||
Reference in New Issue
Block a user