This current arrangement, I believe called "nesting", is impractical for an extended time. Very likely the judge handling your case will decide which parent will have possession of the marital residence during the divorce's temp order. (Beware of the "temporary" designation, our cases often take a year or even two.) So put your best foot forward because temp hearings are often short and generic, perhaps a half hour.
If your spouse has a BF already, then you could make the case that she already has another place to call home while you don't. The problem is that mothers often get possession simply because of the historical deference courts have for that gender. So don't assume you're a shoo-in. Be prepared with solid time tested strategies.
Although I don't know all your circumstances, try to not get an apartment until you find out who court decides gets possession of the home. If you do have to get an apartment, make sure court leaves you enough money to find an apartment large enough for the children also to live with you on your parenting time. If kids of both genders, depending on ages, you may need 2 or 3 bedrooms.
Yes, no custody order yet... I once got hauled off to jail because I didn’t flee her physical abuse.
The past is a reliable predictor of the future. You're at high risk for this happening again, after all, it worked before.