import { formatDistance, subDays } from "date-fns";

export async function onRequest(ev) {
  const timePassed = formatDistance(subDays(new Date(), 3), new Date());
  console.log(timePassed);
}

import avg from "math-avg";

export async function onRequest(ev) {
  const number = avg([2, 4])
  console.log(`${number} ${Date.now()}`);
}

Fix edge handler