mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
11 lines
362 B
TypeScript
11 lines
362 B
TypeScript
import { createI18nMiddleware } from 'fumadocs-core/i18n/middleware';
|
|
import { i18n } from '@/lib/i18n';
|
|
|
|
export default createI18nMiddleware(i18n);
|
|
|
|
export const config = {
|
|
// Matcher ignoring `/_next/` and `/api/`
|
|
// You may need to adjust it to ignore static assets in `/public` folder
|
|
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
|
|
};
|