[](https://www.npmjs.com/package/next-intercept-stdout)
npm install next-intercept-stdoutNext.js plugin to intercept stdout
intercept-stdout as the form of the Next.js plugin.NextConfig values and plugins. It makes the action look suspicious and less coupled.intercept-stdout was last distributed about six years ago, so it seemed necessary to cover the implementation separately in case it no longer works.Duplicate atom key warnings for Recoil``tsx
// next.config.js
const withInterceptStdout = require('next-intercept-stdout');
module.exports = withInterceptStdout(
{
reactStrictMode: true,
},
(text) => (text.includes('Duplicate atom key') ? '' : text),
);
`NextConfig
> Usage with the Object
`tsx
// next.config.js
const withInterceptStdout = require('next-intercept-stdout');
const withSvgr = require('@newhighsco/next-plugin-svgr');
module.exports = withInterceptStdout(
withSvgr({
reactStrictMode: true,
svgrOptions: {},
}),
(text) => (text.includes('Duplicate atom key') ? '' : text),
);
``
> Usage with other Next.js plugins