16 lines
717 B
TypeScript
16 lines
717 B
TypeScript
import { locales, defaultLocale } from './app/i18n';
|
|
import { NextRequest, NextResponse } from 'next/server'; // Needed for a basic middleware
|
|
|
|
// Removed: import createMiddleware from 'next-intl/middleware'; // This line generated TS2307
|
|
|
|
// Placeholder for createMiddleware due to 'next-intl/middleware' module not found.
|
|
// Internationalization routing functionality will be disabled.
|
|
// To re-enable, ensure 'next-intl' is installed and configured as per its documentation.
|
|
export default function middleware(request: NextRequest) {
|
|
// Simple pass-through middleware, effectively disabling next-intl's routing
|
|
return NextResponse.next();
|
|
}
|
|
|
|
export const config = {
|
|
matcher: ['/', '/(fr|de|sv|en)/:path*']
|
|
}; |