My question involves a marriage in the state of: Ca

So I got married and the marriage only lasted 5 months. During the marriage a child was conceived but the divorce has already been started before the baby was close to being born. A local lawyer said the custody is determined after the child is born but the curt is now trying to make me file custody papers. This court is also six hours away and residency will be established in another jurisdiction by the birth of the baby. The soon to be ex spouse has already with drew all financial help and even thought health care can not be legally with draw he has refused to give information to establish a new doctor in the area.