next.js/test/e2e/app-dir/cache-components-dynamic-imports/bundled/middleware.ts
middleware.ts13 lines397 B
import type { ProxyConfig } 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: ProxyConfig = {
  matcher: ['/not-instrumented/middleware'],
}
Quest for Codev2.0.0
/
SIGN IN