BV whilst pregnant

How do you treat bacterial vaginosis whilst pregnant? Can I get antibiotics? Can something at home work?