feat : kavenegar otp added
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
// Middleware handles locale routing, but if it ever misses, redirect to /fa
|
||||
export default function RootPage() {
|
||||
redirect("/fa");
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import createMiddleware from "next-intl/middleware";
|
||||
import { routing } from "./i18n/routing";
|
||||
|
||||
export default createMiddleware(routing);
|
||||
|
||||
export const config = {
|
||||
// Match all pathnames except Next.js internals and static files
|
||||
matcher: ["/((?!_next|_vercel|.*\\..*).*)"],
|
||||
};
|
||||
Reference in New Issue
Block a user