Tech4 min
Our Next.js builds kept running out of memory and webpack config was the reason.
Raising --max-old-space-size didn't help. A webpack config added by Sentry had quietly switched off the Next.js build worker, so compile memory was never released before linting and type checking.