Next.js Discord

Discord Forum

Is the default for next.config.js's `removeConsole` false? If so, why are console.logs not in prod?

Unanswered
Harlequin posted this in #help-forum
Open in Discord
HarlequinOP
Hello! What's the default value for compiler.removeConsole in next.config.js?

The property's mentioned here: https://nextjs.org/docs/architecture/nextjs-compiler#remove-console

But compiler is not listed in options: https://nextjs.org/docs/pages/api-reference/next-config-js

so that may be something missing in documentation.

Thank you!

1 Reply

HarlequinOP