const ogImage = "https://uksnackattack.co.uk/media/reels/202209/AQNeGJgYiAzZUpGdR80UJEhchnkxzXB6Je4XOK5QDm0tcTkRyJ_y6kGT8yX6kM1MyvJQkBlMbspqVBH4fkG2Fj_18318574420009465.mp4"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...
const ogImage = "https://uksnackattack.co.uk/media/posts/202207/292435593_444092333971085_2147026636552764235_n_17900542205540463.jpg"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...