flâneur — a map of the web's best reading

next.config.js: Introduction | Next.js

nextjs.org · 1,372 words · saved by 1 readers

learn more about the configuration file used by Next.js to handle your application.

This page is also available as Markdown at /docs/app/api-reference/config/next-config-js.md . For an index of Next.js documentation , see /docs/llms.txt . Copy page next.config.js Last updated November 4, 2025 Next.js can be configured through a next.config.js file in the root of your project directory (for example, by package.json ) with a default export. next.config.js // @ts-check /** @type {import('next').NextConfig} */ const nextConfig = { /* config options here */ } module . exports = nextConfig ECMAScript Modules next.config.js is a regular Node.js module, not a JSON file. It gets used

Explore this link on the map →

related reading