import createMiddleware from 'next-intl/middleware';
import { locales, defaultLocale } from './i18n/config';

export default createMiddleware({
  locales,
  defaultLocale,
  localePrefix: 'always',
});

export const config = {
  matcher: [
    '/',
    '/(de|en|sr)/:path*',
    '/((?!api|_next|_vercel|.*\\..*).*)',
  ],
};
