OpenAINext.jsJun 15, 2021, 4:00 PM

Next.js 11

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

Key Points

  • prioritized third‑party scripts
  • auto image sizes + blur placeholders
  • webpack 5 default + ESLint

Summary

Next.js 11 improves developer experience and runtime performance with a set of practical features: Conformance rules and built-in ESLint to enforce best practices, a new Script component to prioritize third-party scripts, image improvements to reduce layout shift, Webpack 5 enabled by default, a CRA → Next.js codemod, and a browser-based preview of collaborative development (Next.js Live).

Upgrade tip: run npm i next@latest react@latest react-dom@latest, then npx next lint and follow the upgrade guide if you have custom webpack config.

Key Points

  • Conformance: new rule system (from Google Web Platforms) plus built-in ESLint to surface Next.js-specific issues during development. Run npx next lint to enable.
  • Script optimization: use the new <Script> component with strategy (beforeInteractive, afterInteractive (default), lazyOnload) to prioritize third-party scripts and improve load ordering and performance.
  • Image improvements: next/image supports automatic size detection for imported local images and placeholder="blur" (plus blurDataURL) to reduce Cumulative Layout Shift and improve perceived load.
  • Performance: new Babel loader implementation with in-memory config caching to reduce dev server cold-start and reload times.
  • Webpack 5: enabled by default for all apps; review custom webpack configs and the upgrade docs if you have customizations.
  • Create React App migration: experimental codemod at npx @next/codemod cra-to-next to help move CRA apps to Next.js incrementally.
  • Next.js Live (preview): in-browser collaborative development using ServiceWorker/WebAssembly/ES Modules for real-time editing and sharing.
  • Compatibility: minimum React version bumped to 17.0.2; Next.js will use createRoot when React 18 alpha is detected. Check the upgrade guide for a few breaking changes.

Actionable Steps for Engineers

  • Upgrade packages: npm i next@latest react@latest react-dom@latest.
  • Run linter: npx next lint and address flagged Next.js-specific rules or disable rules per docs.
  • If migrating from CRA: try npx @next/codemod cra-to-next (experimental) and review generated pages/ and CSS placement.
  • If you have custom webpack config: read the webpack 5 migration docs and test thoroughly.

References

  • Upgrade guide, ESLint docs, Script component docs, next/image docs, and Next.js Live docs are available on nextjs.org.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Next.js 11 — 開発者体験の継続的向上

概要

Next.js 11 は、新しい conformance システムと各種パフォーマンス改善により、最高の開発者体験を提供するという私たちのミッションを継続します。

主なポイント

  • 新しい conformance システムによって、ベストプラクティスの遵守やプロジェクトの一貫性を保ちやすくなります。
  • パフォーマンス改善により、ビルド時間やランタイムの速度が向上します。
  • これらの変更はすべて開発者体験(Developer Experience, DX)の向上を目的としています。

詳細については公式のリリースノートやドキュメントを参照してください。