Open tratteo opened 4 hours ago
That's right @tratteo @Baroshem what do you think? Should we have a different default in dev mode?
Hi, well I automatically thought that logs removal was happening solely on production. I think that generally logs should be enabled in development mode, but if that is an intended feature that's fine. Thanks for the fast response btw
No @tratteo you are actually right, sorry for not being clear in my answer I'm wondering whether we should always keep logs in dev mode (ie the option is only valid in production mode), or do we allow the option to be set even in dev mode (ie the option is valid in all environments). If it's the former, it aligns with the previous behavior; if it's the latter, then we can set it via defaults
Oh sorry. Well probably being able to set the property in dev mode too would be the best.
Version
nuxt-security: ^2.1.1 nuxt: ^3.14.159
Reproduction Link
Blank project with removeLoggers set to true:
Steps to reproduce
Set the
removeLoggers
entry totrue
and tun the dev server withrun dev
. I checked that theNODE_ENV
variable is indeed set todevelopment
, 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 withNODE_ENV
set to development.