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