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