All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 19s
Build & Deploy / 🧪 QA (push) Successful in 1m31s
Build & Deploy / 🏗️ Build (push) Successful in 2m34s
Build & Deploy / 🚀 Deploy (push) Successful in 25s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 50s
Build & Deploy / 🔔 Notify (push) Successful in 3s
19 lines
542 B
TypeScript
19 lines
542 B
TypeScript
import createMiddleware from 'next-intl/middleware';
|
|
|
|
export default createMiddleware({
|
|
locales: ['en', 'de'],
|
|
defaultLocale: 'de',
|
|
localePrefix: 'always'
|
|
});
|
|
|
|
export const config = {
|
|
// Match all pathnames except for:
|
|
// - /api (API routes)
|
|
// - /stats (Analytics proxy)
|
|
// - /_next (Next.js internals & image optimizer)
|
|
// - /assets, /_static (static files in /public)
|
|
// - all files with an extension (e.g. /favicon.ico, .JPG, .png, .webp, .svg)
|
|
matcher: ['/((?!api|stats|_next|assets|_static|_vercel|.*\\..*).*)']
|
|
};
|
|
|