Struggling to wean baby!

Paula

My daughter is 9 months old, I have just found out that I'm 7 weeks pregnant with our second (didn't expect it to happen this quickly but super pumped!) and dr told me that due to being high risk, I should stop breast feeding asap. I'm trying everything and just can't find a way to make this work. We are both miserable! How do I get her to nap without nursing???