Set up
To get started:1
Install the Prisma driver adapter for PlanetScale (
@prisma/adapter-planetscale), PlanetScale serverless driver (@planetscale/database), and undici packages:NoteWhen using an older version of Node.js, you can provide a custom fetch function implementation. We recommend the
undici package on which Node’s built-in fetch is based. Node.js version 18 includes a built-in global fetch function.2
Enable the
driverAdapters Preview feature flag:NoteEnsure you update the host value in your connection string to
aws.connect.psdb.cloud. You can learn more about this here.3
Generate Prisma Client:
4
Update your Prisma Client instance to use the PlanetScale serverless driver:

