Move to a single prisma client connection for the ui backend to prevent competing connections.

This commit is contained in:
Jaret Burkett
2026-07-21 11:21:28 -06:00
parent 9e9439015e
commit e54a0fe78c
18 changed files with 33 additions and 49 deletions

View File

@@ -1,7 +1,5 @@
import { NextResponse } from 'next/server';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
import prisma from '@/server/prisma';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);