feat : kavenegar otp added

This commit is contained in:
soroush.asadi
2026-05-29 10:18:47 +03:30
parent 27e61d257e
commit 16cff8730b
22 changed files with 502 additions and 34 deletions
+6
View File
@@ -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");
}
+9
View File
@@ -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|.*\\..*).*)"],
};