Moving away😓

Has anyone ever moved away from their close family? I am married with 2 kids, a toddler and a 7 month old. I am super close to my immediate family and have always lived just a 10 minute drive from them all. But now my husband and I are ready to buy our own home and we found a great place about 40 minutes away. I know that's not super far but I can't make that drive every day. Advice on moving away please?? I'm excited but it will be hard getting used to not seeing my close family super often😔