Skip to content

Loggers are removed in development mode too #559

@tratteo

Description

@tratteo

Version

nuxt-security: ^2.1.1
nuxt: ^3.14.159

Reproduction Link

Blank project with removeLoggers set to true:

security: {
    removeLoggers: true,
}

Steps to reproduce

Set the removeLoggers entry to true and tun the dev server with run dev. I checked that the NODE_ENV variable is indeed set to development, yet logs are being removed.

What is Expected?

Expected behaviour is that loggers are not removed when the project is in development mode.

What is actually happening?

Loggers are being removed when running development server with run dev.
Even with NODE_ENV set to development.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions