1 min read


Applications using Next.js should not enable production source maps so that they don't publicly share source code.
Table of Contents

Conformance is available on Enterprise plans

This rule is available from version 1.1.0.

Enabling production source maps in your Next.js application will publicly share your application's source code and should be done with caution. This rule flags any usage of productionBrowserSourceMaps for review. If intentional, the exception should be added to an allowlist.

For further reading, see:

This rule will catch the following code.

module.exports = {
  productionBrowserSourceMaps: true,

To fix this issue, either set the value of productionBrowserSourceMaps configuration to false, or if intentional add an exception to an allowlist.

Last updated on June 22, 2024