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:
@@ -4,7 +4,10 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3010",
|
||||
"build": "next build",
|
||||
"build": "NODE_OPTIONS='--max-old-space-size=4096' next build",
|
||||
"build:fast": "NODE_OPTIONS='--max-old-space-size=2048' NEXT_PRIVATE_SKIP_SIZE_LIMIT=1 next build",
|
||||
"build:analyze": "ANALYZE=true npm run build",
|
||||
"build:prod": "NODE_OPTIONS='--max-old-space-size=8192' NODE_ENV=production next build",
|
||||
"start": "next start -p 3010",
|
||||
"lint": "next lint",
|
||||
"import-bible": "tsx scripts/import-bible.ts",
|
||||
@@ -77,6 +80,7 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "^2.4.6",
|
||||
"@types/jsonwebtoken": "^9.0.10",
|
||||
"ignore-loader": "^0.1.2",
|
||||
"tsx": "^4.20.5"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user