mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 21:47:51 +00:00
16 lines
481 B
TypeScript
16 lines
481 B
TypeScript
import createMiddleware from 'next-intl/middleware';
|
|
|
|
export default createMiddleware({
|
|
// A list of all locales that are supported
|
|
locales: ['sv', 'en'],
|
|
|
|
// If this locale is matched, pathnames work without a prefix (e.g. `/about`)
|
|
defaultLocale: 'sv',
|
|
// Dismissing this during, review when going to prod.
|
|
localeDetection: false
|
|
});
|
|
|
|
export const config = {
|
|
// Skip all paths that should not be internationalized
|
|
matcher: ['/((?!api|studio|_next|.*\\..*).*)']
|
|
}; |