Use conditional updated import location for getSite hook