Sleeping on your back

I’m 25 weeks and I still sleep on my back, is that bad for me or the baby? It’s the only way I can sleep.