Husky hooks are a really good way to prevent someone from pushing accidental console logs to a production ready build or staging environment, but s...
For further actions, you may consider blocking this person and/or reporting abuse
I want to know how we can hide redux from the console on production and please tell me how we secure or local storage on production or dev
To secure the localStorage you can encrypt the data with any encryption lib. CryptoJS is a good one.
Also to secure your encryption key store it in
.env
file if you can, and access it from node process.For Redux I do not know, but If I try that or come to know about It I will update the comment. 🙂
Thank you boi 😊
For redux issue you can reffer to this StackOverflow
thanks boi
Hello, did you able to find the answer for localstorage or redux ?
Thanks - Dan
Not yet bro
That
console.log("I am just another dummy console log,
will be showed in console, because at first will be executed all code of component, and only then code that in useEffectsuppose to be suppressed 🙂")
Thanks @lukeshiru for the correction. I have updated the blog. BTW I see you on YT nice work 🤘
Nice work bro..
I have one question.. what if I have to enable console logging on IT,UAT environments and disable only for Production?
Can you put some light on this?
use environment variables to check if it's prod environment if it is then disable, otherwise keep it as it is.