Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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'],
}