Skip to content

Commit

Permalink
fix: testing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Sep 12, 2024
1 parent 696cdcf commit c85d363
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions client/src/lib/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ import { PrismaClient } from '@prisma/client'
import { withOptimize } from '@prisma/extension-optimize'
import { withAccelerate } from '@prisma/extension-accelerate'
import { withPulse } from '@prisma/extension-pulse'
import ws from 'ws'
// import ws from 'ws'

neonConfig.webSocketConstructor = ws
// neonConfig.webSocketConstructor = ws
const neon = new Pool({ connectionString: process.env.DATABASE_PRISMA_URL }) // or process.env.POSTGRES_PRISMS_URL
const adapter = new PrismaNeon(neon)
const prismaClientSingleton = () =>
new PrismaClient({ adapter })
.$extends(withAccelerate())
.$extends(
withPulse({
apiKey: process.env.PULSE_API_KEY as string
})
)
.$extends(
withOptimize({
apiKey: process.env.OPTIMIZE_API_KEY as string
})
)
// .$extends(
// withPulse({
// apiKey: process.env.PULSE_API_KEY as string
// })
// )
// .$extends(
// withOptimize({
// apiKey: process.env.OPTIMIZE_API_KEY as string
// })
// )

declare global {
var prismaGlobal: undefined | ReturnType<typeof prismaClientSingleton>
Expand Down

1 comment on commit c85d363

@vercel
Copy link

@vercel vercel bot commented on c85d363 Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 2 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.