update delivery

This commit is contained in:
hamid zarghami
2026-06-14 09:06:23 +03:30
parent 71238dcd75
commit 29f7b9db58
+3 -5
View File
@@ -7,6 +7,8 @@ const HOST_MAP: Record<string, string> = {
"thesun.tahavol-mr.ir": "/suncafe",
"passataplus.ir": "/passata",
"cookieca.ir": "/cookieca",
"felamingofood.ir": "/felamingo",
"nanakbakery.ir": "/nanakbakery",
// دامنه‌های جدید اینجا اضافه می‌شوند
};
@@ -21,11 +23,7 @@ export function middleware(req: NextRequest) {
const pathname = req.nextUrl.pathname;
// مسیرهای api و استاتیک را rewrite نکن
if (
pathname.startsWith("/api") ||
pathname.startsWith("/_next") ||
pathname.includes(".")
) {
if (pathname.startsWith("/api") || pathname.startsWith("/_next") || pathname.includes(".")) {
return NextResponse.next();
}