Remove middleware temporarily to fix routing
This commit is contained in:
@@ -3,5 +3,5 @@ import { defineRouting } from 'next-intl/routing';
|
||||
export const routing = defineRouting({
|
||||
locales: ['sr', 'en'],
|
||||
defaultLocale: 'sr',
|
||||
localePrefix: 'never'
|
||||
localePrefix: 'as-needed'
|
||||
});
|
||||
|
||||
@@ -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).*)']
|
||||
};
|
||||
Reference in New Issue
Block a user