Potty training

Ci

So I’m potty training my daughter and she’s doing really good but still having accidents since we recently started. She still wears a diaper to nap and sleep through the night but when it comes time to fully be potty trained how do you make sure they don’t wet the bed. She refuses to go to sleep without milk and I know that’s why she pees during her nap and through the night. How do I break her of it or do I.? Thanks mommas