Cloth diapers and hard water?

M&M

I’m confused as to what I need to do for cloth diapering and hard water. My son’s skin is super sensitive so I’m concerned about this. What do you do for your cloth diapers if you have hard water? I read somewhere you could use salt but idk how true that is. Thanks 🙏🏻