Unverified Commit 1fd00899 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Remove unneeded `async` in docs. (#43161)

https://github.com/vercel/feedback/issues/23545
parent 6aaa9fc2
...@@ -56,7 +56,7 @@ The `waitUntil()` method can be used to prolong the execution of the function if ...@@ -56,7 +56,7 @@ The `waitUntil()` method can be used to prolong the execution of the function if
import { NextResponse } from 'next/server' import { NextResponse } from 'next/server'
import type { NextFetchEvent, NextRequest } from 'next/server' import type { NextFetchEvent, NextRequest } from 'next/server'
export async function middleware(req: NextRequest, event: NextFetchEvent) { export function middleware(req: NextRequest, event: NextFetchEvent) {
event.waitUntil( event.waitUntil(
fetch('https://my-analytics-platform.com', { fetch('https://my-analytics-platform.com', {
method: 'POST', method: 'POST',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment