dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
18.82k stars 2.03k forks source link

PrismaClient failed to initialize #1256

Closed zohaibafzal49 closed 1 month ago

zohaibafzal49 commented 2 months ago

⨯ Error [PrismaClientValidationError]: PrismaClient failed to initialize because it wasn't configured to run in this environment (Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)). [0] In order to run Prisma Client in an edge runtime, you will need to configure one of the following options: [0] - Enable Driver Adapters: https://pris.ly/d/driver-adapters [0] - Enable Accelerate: https://pris.ly/d/accelerate

Driver Adapter is already set here generator client { provider = "prisma-client-js" previewFeatures = [ "driverAdapters"] }

linear[bot] commented 2 months ago

ENG-539 PrismaClient failed to initialize

devkiran commented 1 month ago

@zohaibafzal49 Please confirm you're using an edge-compatible database. Please follow the instructions here.