How to help my constipated baby...?

Kayla
FTM here and my 2 and a half weeks old baby girl is struggling with some constipation. She is both breast and formula fed. What can I do to help her? I've been doing some belly massages and moving her legs in bicycle motion but it's not relieving her.