Weight loss while breastfeeding

Angel

I’m currently 35 weeks pregnant. This morning I stepped on the scale after not weighing myself for a while (because it makes me feel horrible) to realize I’ve gained 35 lbs 😔 and I still have 5 weeks to go. Anyways, I plan on breastfeeding as long as I can! I was wondering if it’s possible to lose weight without hurting my milk supply?