File size: 364 Bytes
b91e262
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { NextResponse } from 'next/server'

export function proxy(request, context) {
  const url = new URL(request.url)
  url.pathname = `/en-EN${url.pathname}`

  return NextResponse.rewrite(url)
}

export const config = {
  // Matcher ignoring `/_next/`, `/api/`, static assets, favicon, etc.
  matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
}