#Console.log in production build

3 messages · Page 1 of 1 (latest)

eager chasm
#

Is there any way to enable console logs on a production build?
The Nuxt (config) docs doesn't seem to provide any info on this subject.

night root
#

You mean disable? It's not disabled by default and you should see your logs in the production

eager chasm
#

thanks for the quick reply, this helped me look in the right direction. as i first thought i had to enable it .

But it seems the Nuxt Security module im using removes loggers bij default (https://nuxt.com/modules/security).

in nuxt.config.ts Setting the removeLoggers to false seems to solve this issue.

security: {
removeLoggers: false,
}