middleware Function
Exported from nextra/locales.
Signature
Parameters:| Name | Type | Default | 
|---|---|---|
request | NextRequest | 
Example
// Basic usage
export { middleware } from 'nextra/locales'
 
export const config = {
  // Matcher ignoring `/_next/` and `/api/`
  matcher: [
    '/((?!api|_next/static|_next/image|favicon.ico|icon.svg|apple-icon.png|manifest|_pagefind).*)'
  ]
}