Skip to content

Commit

Permalink
docs: fix path logging
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Jul 16, 2023
1 parent 115c461 commit 8163ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function middleware(req: Request): Promise<Response> {
try {
await supabase.from('logs').insert({
created_at: new Date().toISOString(),
path: req.url,
path: new URL(req.url).pathname,
country: geolocation(req).country,
})
} catch (error) {
Expand Down

1 comment on commit 8163ea2

@vercel
Copy link

@vercel vercel bot commented on 8163ea2 Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.