mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
import { createI18nMiddleware } from "fumadocs-core/middleware";
|
|
import { defaultLanguage, languages } from "./i18n";
|
|
|
|
export default createI18nMiddleware({
|
|
languages,
|
|
defaultLanguage,
|
|
});
|
|
|
|
export const config = {
|
|
// Matcher ignoring `/_next/` and `/api/`
|
|
matcher: [
|
|
"/((?!api|_next/static|_next/image|assets|favicon.ico|logo.png|robots.txt|sitemap.xml|icon.svg|sw.js).*)",
|
|
],
|
|
};
|