cuddly-ice-9680
11/11/2022, 5:38 PMexport async function transformEvent(event, metadata) {
if (event.request_ip) {
const res = await fetch("https://ip2.app/info.php?ip=" + event.request_ip);
event.context.geolocation = res;
}
return event;
}
It's from the support page for transformations, I can't even get the sample input code to return any change in output.cuddly-ice-9680
11/11/2022, 6:00 PM