Reverted all changes back to version 42b6408f00

This commit is contained in:
[dyad]
2026-01-18 17:26:25 +01:00
parent 2a96e863df
commit be849c6a9e
2 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,12 @@
import {notFound} from 'next/navigation';
import {getRequestConfig} from 'next-intl/server';
const locales = ['en'];
export const locales = ['en'];
export const defaultLocale = 'en';
export default getRequestConfig(async ({locale}) => {
if (!locales.includes(locale as any)) notFound();
if (!locales.includes(locale as any)) {
locale = defaultLocale;
}
return {
messages: (await import(`../messages/${locale}.json`)).default

View File

@@ -6,6 +6,5 @@ export default createMiddleware({
});
export const config = {
// Match only internationalized pathnames
matcher: ['/', '/(en)/:path*']
matcher: ['/((?!api|_next|_vercel|.*\\..*).*)']
};