File size: 407 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import type { MiddlewareConfig } from 'next/server'
export default async function middleware() {
// This import should not be instrumented.
// `trackDynamicImport` will throw if it's used in the edge runtime,
// so it's enough to just do an import() here and see if it succeeds.
await import('./messages')
}
export const config: MiddlewareConfig = {
matcher: ['/not-instrumented/middleware'],
}
|