Skip to content

Commit

Permalink
no datetime in analytics?!
Browse files Browse the repository at this point in the history
  • Loading branch information
mckoda09 committed Oct 2, 2024
1 parent bcb5c9c commit 0b29bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function handler(req: Request, ctx: FreshContext) {
ip: ctx.remoteAddr.hostname,
path: ctx.url.pathname,
ua: req.headers.get("user-agent"),
date: new Date()
};

await kv.set(key, value);
Expand Down

0 comments on commit 0b29bee

Please sign in to comment.