Baby won't sleep in crib..

So my DD will be a month old on Monday and will NOT sleep in her crib or bassinet. I'll get her to sleep and gently put her in either one and she'll wake up not 5 minutes later. But I'll lay her next to me after nursing and she'll sleep for 4 hours straight. Anyone know of a way to get her to sleep in her crib? I love sleeping with her but I miss cuddling my boyfriend at night 😞