📝 priettier check
All checks were successful
PR Checks / lint-and-build (pull_request) Successful in 18s

This commit is contained in:
RJ
2025-12-04 15:57:39 +02:00
parent b68325123b
commit 101624c4d5
32 changed files with 185 additions and 172 deletions

View File

@@ -1,5 +1,5 @@
import createMiddleware from 'next-intl/middleware';
import {routing} from './src/i18n/routing';
import createMiddleware from 'next-intl/middleware'
import { routing } from './src/i18n/routing'
export default createMiddleware({
...routing,
@@ -7,14 +7,10 @@ export default createMiddleware({
localeCookie: {
name: 'NEXT_LOCALE',
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax'
}
});
sameSite: 'lax',
},
})
export const config = {
matcher: [
'/',
'/(en|ro)/:path*',
'/((?!api|_next|_vercel|.*\\..*).*)'
]
};
matcher: ['/', '/(en|ro)/:path*', '/((?!api|_next|_vercel|.*\\..*).*)'],
}