Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🚀 Deploy (push) Has been cancelled
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
🚀 Build & Deploy / 🏗️ Build (push) Has been cancelled
🚀 Build & Deploy / 🔔 Notify (push) Has been cancelled
🚀 Build & Deploy / 🧪 QA (push) Has been cancelled
19 lines
459 B
TypeScript
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|.*\\..*).*)"],
|
|
};
|