const ogImage = "https://uksnackattack.co.uk/media/reels/202206/AQPwr2ew933UgpfSQHtreXV9HJYPExV1l3rYEVsgRLuznzKOxnPQomZCv4MQCvB0miP4rBS3K9zY2ISUGgoV8uPKyLTXUdKAC2o_18207094501199869.mp4"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...