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

7
package-lock.json generated
View File

@@ -67,6 +67,7 @@
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/jsonwebtoken": "^9.0.10",
"ignore-loader": "^0.1.2",
"tsx": "^4.20.5"
}
},
@@ -4638,6 +4639,12 @@
"url": "https://opencollective.com/unified"
}
},
"node_modules/ignore-loader": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/ignore-loader/-/ignore-loader-0.1.2.tgz",
"integrity": "sha512-yOJQEKrNwoYqrWLS4DcnzM7SEQhRKis5mB+LdKKh4cPmGYlLPR0ozRzHV5jmEk2IxptqJNQA5Cc0gw8Fj12bXA==",
"dev": true
},
"node_modules/immer": {
"version": "10.1.3",
"resolved": "https://registry.npmjs.org/immer/-/immer-10.1.3.tgz",