📝 priettier check
All checks were successful
PR Checks / lint-and-build (pull_request) Successful in 18s
All checks were successful
PR Checks / lint-and-build (pull_request) Successful in 18s
This commit is contained in:
@@ -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|.*\\..*).*)'],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user