Prompt Buddy logoPrompt Buddy

nextjs · Next.js Docs

Next.js Supported Browsers

Configuring browser support and polyfills in Next.js using Browserslist, instrumentation-client.js for App Router, or top-level imports for Pages Router.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Next.js Supported Browsers

Configuring browser support and polyfills in Next.js using Browserslist, instrumentation-client.js for App Router, or top-level imports for Pages Router.

When To Use

Use when you need to target specific browser versions via Browserslist or implement custom polyfills for unsupported JavaScript features in App Router or Pages Router environments.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/nextjs-supported-browsers-workflow-guide.mdA list of modern browser versions supported by Next.js and instructions for configuring Browserslist and polyfills.Questions about a list of modern browser versions supported by Next.js and instructions for configuring Browserslist and polyfills.
examples/nextjs-supported-browsers-nextjs-supported-browserslist.jsonA JSON object containing the browserslist configuration used by Next.js to define supported browser versions.Exact payloads, commands, or snippets shown in A JSON object containing the browserslist configuration used by Next.js to define supported browser versions.
examples/nextjs-supported-browsers-polyfills-import-typescript.tsA TypeScript code snippet demonstrating how to import polyfills to ensure compatibility with supported browsers in a Next.js application.Exact payloads, commands, or snippets shown in A TypeScript code snippet demonstrating how to import polyfills to ensure compatibility with supported browsers in a...
examples/nextjs-supported-browsers-polyfill-import.tsxA TypeScript React component demonstrating how to import polyfills in a Next.js application to support specific browser environments.Exact payloads, commands, or snippets shown in A TypeScript React component demonstrating how to import polyfills in a Next.js application to support specific brows...
examples/nextjs-supported-browsers-polyfill-import.jsxA JSX code example demonstrating how to import polyfills within a Next.js application component.Exact payloads, commands, or snippets shown in A JSX code example demonstrating how to import polyfills within a Next.js application component.
examples/nextjs-supported-browsers-structured-clone-polyfill-typescript.tsA TypeScript code example demonstrating how to conditionally import a polyfill for the structuredClone API based on browser support within a Next.js application.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to conditionally import a polyfill for the structuredClone API based on b...
examples/nextjs-supported-browsers-structured-clone-polyfill.jsA JavaScript code example demonstrating how to conditionally import a polyfill for the structuredClone API based on browser support within a Next.js application.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to conditionally import a polyfill for the structuredClone API based on b...

What This Skill Covers

  • For an index of all Next.js documentation, see /docs/llms.txt. Next.js supports modern browsers with zero configuration.
  • Main sections: Browserslist, Polyfills, Custom Polyfills, In App Router, In Pages Router.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://nextjs.org/docs/architecture/supported-browsers