Toddler bed transition (from co-sleeping)

Ashley • 30. Married for 8 years to my soulmate. Momma to Jack, born on 11.30.16 and Connor born on 3.16.19

I’m sure there have been other posts about this but I’m not sure how to search. My son and I currently co-sleep, But I am 7 1/2 weeks pregnant and really need to start getting him to sleep independently. We usually lay with him on a big mattress in his room until he’s asleep and then i’ll join when I’m ready to go to bed. Does anyone have any tips for transitioning from cosleeping to a toddler bed? I know it’s going to be rough at first. I plan on still staying in his room with him at first until he’s asleep. Thank you!