Skip to content

Commit b5c4c4b

Browse files
committed
ignore punnycode deprecation warning
1 parent 1dc30bb commit b5c4c4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

next.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@ module.exports = withSentryConfig(nextConfig, {
8888
applicationKey: 'sentry-docs',
8989
},
9090
});
91+
92+
process.on('warning', warning => {
93+
if (warning.code === 'DEP0040') {
94+
// Ignore punnycode deprecation warning, we don't control its usage
95+
return;
96+
}
97+
console.warn(warning); // Log other warnings
98+
});

0 commit comments

Comments
 (0)