~repos /website

#astro#js#html#css

git clone https://pyrossh.dev/repos/website.git

木 Personal website of pyrossh. Built with astrojs, shiki, vite.


4c08a95d pyrossh

2 years ago
remove GA
Files changed (1) hide show
  1. routes/_middleware.ts +1 -8
routes/_middleware.ts CHANGED
@@ -1,13 +1,6 @@
1
1
  import { FreshContext } from "$fresh/server.ts";
2
- import { createReporter } from "https://deno.land/x/g_a/mod.ts";
3
2
 
4
- const report = createReporter({
5
- id: "UA-31541587-1",
6
- });
7
-
8
- export async function handler(req: Request, ctx: FreshContext) {
3
+ export async function handler(_req: Request, ctx: FreshContext) {
9
- const start = performance.now();
10
4
  const resp = await ctx.next();
11
- report(req, { remoteAddr: ctx.remoteAddr }, resp, start, null);
12
5
  return resp;
13
6
  }