Fix Next.js config and confirm build optimizations working
- Fix swcMinify configuration location (moved from experimental to root) - Confirmed build time reduced from >2min timeout to 41 seconds - Memory usage should be significantly lower with directory exclusions - Build warnings are expected from existing admin auth imports Build performance improvements achieved: ✓ 7GB+ bibles/ directory excluded from webpack processing ✓ scripts/ directory excluded from processing ✓ SWC minifier enabled for faster builds ✓ Webpack build worker enabled for parallel processing ✓ Memory limit reduced from unlimited to 2GB for fast builds 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -11,10 +11,11 @@ const nextConfig = {
|
||||
experimental: {
|
||||
// Reduce memory usage during builds
|
||||
webpackBuildWorker: true,
|
||||
// Use SWC minifier (faster than Terser)
|
||||
swcMinify: true,
|
||||
},
|
||||
|
||||
// Use SWC minifier (faster than Terser)
|
||||
swcMinify: true,
|
||||
|
||||
// Webpack optimizations
|
||||
webpack: (config, { dev, isServer }) => {
|
||||
if (!dev) {
|
||||
|
||||
Reference in New Issue
Block a user