My own children’s commute is 11 minutes, but they’re in elementary. It’s perfect.
But, to add to the conversation, I went to a high school that was 35-40 minutes away. I loved the HS and purposely chose it, BUT, having friends everywhere (I had friends who were 45 minutes in the opposite direction), meant that I didn’t really have a ton of close friendships outside of school hours. BUT, we all stayed out of trouble during HS; since we were so spread out, there wasn’t a ton of unsupervised, unscheduled hanging out at friends’ houses.