How do I stop breastfeeding?

👩🏻

My baby is almost a year, and I am ready to stop breastfeeding. However, he nurses all night for comfort. I haven’t be able to get 2 hrs of solid sleep since he was born because every time he sees my nipple out of his mouth at night he wakes up and cries. How can I get him to stop doing this at night and begin the process of weaning him?