feat: complete initial project setup with i18n and standalone config
This commit is contained in:
14
proxy.ts
Normal file
14
proxy.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import createMiddleware from 'next-intl/middleware';
|
||||
import {routing} from './i18n/routing';
|
||||
import type { NextRequest } from 'next/server';
|
||||
|
||||
const intlProxy = createMiddleware(routing);
|
||||
|
||||
export function proxy(request: NextRequest) {
|
||||
return intlProxy(request);
|
||||
}
|
||||
|
||||
export const config = {
|
||||
// Match only internationalized pathnames
|
||||
matcher: ['/', '/(tr|en)/:path*']
|
||||
};
|
||||
Reference in New Issue
Block a user