Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Successful in 1m23s
Build & Deploy / 🏗️ Build (push) Failing after 3m6s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s
23 lines
518 B
TypeScript
23 lines
518 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|stats|errors|_next|_vercel|.*\\..*).*)",
|
|
"/",
|
|
"/(de)/:path*",
|
|
],
|
|
};
|