update delivery
This commit is contained in:
+3
-5
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user