fix: Prisma binary download for Iran servers

This commit is contained in:
2026-05-06 18:04:19 +03:30
parent ea6e67b4e8
commit b0a345c6b7
23 changed files with 285 additions and 116 deletions

View File

@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from "next/server";
import { db } from "@/lib/db";
import { getServerSession } from "next-auth";
import { authOptions } from "@/lib/auth";
import { Prisma } from "@prisma/client";
import { Prisma } from "@/lib/generated/prisma";
async function adminOnly(req: NextRequest) {
const session = await getServerSession(authOptions);