Files
mb-grid-solutions.com/middleware.ts
Marc Mintel 503676dab5
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Failing after 3m21s
🚀 Build & Deploy / 🚀 Deploy (push) Has been cancelled
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
🚀 Build & Deploy / 🔔 Notify (push) Has been cancelled
🚀 Build & Deploy / 🏗️ Build (push) Has been cancelled
fix(intl): safeguard against missing translation keys and resolve middleware naming conflict
2026-05-04 16:23:28 +02:00

19 lines
459 B
TypeScript

import createMiddleware from "next-intl/middleware";
export default createMiddleware({
// A list of all locales that are supported
locales: ["de"],
// Used when no locale matches
defaultLocale: "de",
// Use default locale without prefix
localePrefix: "as-needed",
});
export const config = {
// Matcher for all pages and internationalized pathnames
// excluding api, _next, static files, etc.
matcher: ["/((?!api|_next|.*\\..*).*)"],
};