update delivery
This commit is contained in:
+3
-5
@@ -7,6 +7,8 @@ const HOST_MAP: Record<string, string> = {
|
|||||||
"thesun.tahavol-mr.ir": "/suncafe",
|
"thesun.tahavol-mr.ir": "/suncafe",
|
||||||
"passataplus.ir": "/passata",
|
"passataplus.ir": "/passata",
|
||||||
"cookieca.ir": "/cookieca",
|
"cookieca.ir": "/cookieca",
|
||||||
|
"felamingofood.ir": "/felamingo",
|
||||||
|
"nanakbakery.ir": "/nanakbakery",
|
||||||
// دامنههای جدید اینجا اضافه میشوند
|
// دامنههای جدید اینجا اضافه میشوند
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -21,11 +23,7 @@ export function middleware(req: NextRequest) {
|
|||||||
const pathname = req.nextUrl.pathname;
|
const pathname = req.nextUrl.pathname;
|
||||||
|
|
||||||
// مسیرهای api و استاتیک را rewrite نکن
|
// مسیرهای api و استاتیک را rewrite نکن
|
||||||
if (
|
if (pathname.startsWith("/api") || pathname.startsWith("/_next") || pathname.includes(".")) {
|
||||||
pathname.startsWith("/api") ||
|
|
||||||
pathname.startsWith("/_next") ||
|
|
||||||
pathname.includes(".")
|
|
||||||
) {
|
|
||||||
return NextResponse.next();
|
return NextResponse.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user