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