From f1f09c783e9f7240d1ba31772111acd3002ed304 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:03:59 +0200 Subject: [PATCH] fix: middeware example (#95) --- example/src/middleware.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/example/src/middleware.ts b/example/src/middleware.ts index 6756e3c..0998698 100644 --- a/example/src/middleware.ts +++ b/example/src/middleware.ts @@ -34,8 +34,6 @@ export async function middleware(req: NextRequest, event: NextFetchEvent) { // Redirect to variant newUrl.pathname = `/ab/${variant === "a" ? "a" : "b"}`; res = NextResponse.rewrite(newUrl); - - event.waitUntil(flags.sendMetrics()) // Experimental, since 1.5.0-beta.3 } else { res = NextResponse.next();