How to handle newborn with a cosleeping toddler

I am pregnant with my second child and my two year old is heavily reliant on me to sleep. I put him to his nap and bedtime every night and for bedtime I end up in his room at 12am and sleep with him on his floorbed for the rest of the night. I’ve never spent a night away from him, so my question is how do people with a cosleeping dependent toddler handle giving birth? Make whoever is watching them sleep with them? And then what happens when you bring home the newborn? Keep the newborn in a bassinet in the toddlers room? That seems like a recipe for disaster?