添加actions文件移除route文件

This commit is contained in:
wmp
2025-09-24 19:15:22 +08:00
parent 02fc0676bf
commit ebf50c15f1
17 changed files with 495 additions and 727 deletions

View File

@@ -4,10 +4,11 @@ const globalForPrisma = global as unknown as {
prisma: PrismaClient | undefined
}
export const prisma = globalForPrisma.prisma ?? new PrismaClient()
const prisma = globalForPrisma.prisma ?? new PrismaClient()
if (process.env.NODE_ENV !== 'production') {
globalForPrisma.prisma = prisma
}
export default prisma
export * from '@/generated/prisma/client'