Skip to content

Commit

Permalink
fix: middeware example (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek authored Oct 17, 2024
1 parent 8dce093 commit f1f09c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions example/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f1f09c7

Please sign in to comment.