Remove middleware temporarily to fix routing

This commit is contained in:
Unchained
2026-03-06 21:04:27 +02:00
parent 236eb628d2
commit e1120f617e
2 changed files with 1 additions and 14 deletions

View File

@@ -3,5 +3,5 @@ import { defineRouting } from 'next-intl/routing';
export const routing = defineRouting({
locales: ['sr', 'en'],
defaultLocale: 'sr',
localePrefix: 'never'
localePrefix: 'as-needed'
});

View File

@@ -1,13 +0,0 @@
import createMiddleware from "next-intl/middleware";
import { routing } from './i18n/routing';
export default createMiddleware(routing);
export const config = {
// Match all pathnames except for
// - /api routes
// - /_next (Next.js internals)
// - /_vercel (Vercel internals)
// - all root files inside /public (e.g. /favicon.ico)
matcher: ['/((?!api|_next|_vercel|_next/static|_next/image|favicon.ico|robots.txt|sitemap.xml).*)']
};