Consider it a personal challenge: what opportunities does this afford you?
Really, think about it. New career? Move away? Reconnect with an old flame? Dating scene? Shit's great and unlimited. Put some thought into it and make a plan.
Lastly, be a gentleman, be involved in the kid's life to the greatest extent you can, especially once you're over the bruise of this relationship ending. Having a kid is fucking hard work and, early on, anyway, the rewards are few.
Dealing with a baby literally shaves years off your life. If she's going at this alone, that's on her. Shit's slowly abrasive and wears your mental stamina down, even if you're in a stable, happy, relationship with good jobs and a bright future. You may have dodged a bullet, here. It'd be far easier to be a good dad at a distance.