create-nxtstart-app
Version:
Nxtstart is an easy to use, interactive CLI tool to bootstrap your next web-based project. The template is aimed at students to get an easy access to web development with example implementations. It is also useful for experts to speed up prototyping.
13 lines (10 loc) • 348 B
text/typescript
import { i18nRouter } from 'next-i18n-router'
import i18nConfig from './i18nConfig'
import { NextRequest } from 'next/server'
export function proxy(request: NextRequest) {
return i18nRouter(request, i18nConfig)
}
// only applies this proxy to files in the app directory
export const config = {
matcher: '/((?!api|static|.*\\..*|_next).*)',
}