2451af931c
Without this, any spans added by the middleware implementation would be orphaned and create extra traces.
15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
import type { NextRequest, NextFetchEvent } from 'next/server'
|
|
import { NextResponse } from 'next/server'
|
|
|
|
export const config: {
|
|
matcher: string[]
|
|
} = {
|
|
matcher: ['/behind-middleware', '/behind-middleware/:path*'],
|
|
}
|
|
|
|
export async function middleware(
|
|
request: NextRequest,
|
|
event?: NextFetchEvent
|
|
): Promise<Response> {
|
|
return NextResponse.next()
|
|
}
|