Configuration

productionBrowserSourceMaps

Enable generation of browser-side production source maps when needed for debugging. Publicly accessible maps can reveal more source detail and increase artifact size. Never rely on disabling maps to protect secrets; secrets must not be in client code at all. Review publication and access policy separately. Example context: Next.js 16.x documentation lane; illustrative snippet or file tree, not executed. Exact candidate patch 16.4.6 remains unverified. Expected behavior / verification: In a disposable synthetic project, inspect emitted map files and their public accessibility. Do not enable this indiscriminately for a private production codebase.

Formal Syntax & Structure

nextjs syntaxnextjs
productionBrowserSourceMaps: boolean

Working Example

Example Snippetnextjs
export default { productionBrowserSourceMaps: true };
Next.js Reference