DEV Community

Discussion on: ReactJS - Disable console.log() in production and staging

Collapse
 
umerfarooq69 profile image
Umer farooq

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

Collapse
 
anjkr profile image
anj-kr

Hello, did you able to find the answer for localstorage or redux ?

Thanks - Dan

Collapse
 
umerfarooq69 profile image
Umer farooq

Not yet bro

Collapse
 
rajeshroyal profile image
Rajesh Royal

For redux issue you can reffer to this StackOverflow

Collapse
 
umerfarooq69 profile image
Umer farooq

thanks boi

Collapse
 
rajeshroyal profile image
Rajesh Royal

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. 🙂

Collapse
 
umerfarooq69 profile image
Umer farooq

Thank you boi 😊