You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
498 B
16 lines
498 B
1 year ago
|
import createMiddleware from "next-intl/middleware";
|
||
|
|
||
|
export default createMiddleware({
|
||
|
// A list of all locales that are supported
|
||
|
locales: ["en", "vn"],
|
||
|
|
||
|
// If this locale is matched, pathnames work without a prefix (e.g. `/about`)
|
||
|
defaultLocale: "en",
|
||
|
});
|
||
|
|
||
|
export const config = {
|
||
|
// Skip all paths that should not be internationalized. This example skips the
|
||
|
// folders "api", "_next" and all files with an extension (e.g. favicon.ico)
|
||
|
matcher: ["/((?!api|_next|.*\\..*).*)"],
|
||
|
};
|