Performance: TypeScript support in Next.js
MEDIUM IMPACT
This affects the build time and initial page load speed due to type checking and transpilation steps.
next.config.js: module.exports = { typescript: { ignoreBuildErrors: false } };
next.config.js: module.exports = { typescript: { ignoreBuildErrors: true } };
| Pattern | Build Time | Runtime Impact | User Experience | Verdict |
|---|---|---|---|---|
| Ignoring type errors | Fast build but unstable | High risk of runtime errors | Poor due to crashes or bugs | [X] Bad |
| Strict type checking with incremental build | Moderate build time | No runtime penalty | Stable and smooth UX | [OK] Good |