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