Set up
To get started:Install the Prisma driver adapter for PlanetScale (
@prisma/adapter-planetscale), PlanetScale serverless driver (@planetscale/database), and undici packages:When 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.Enable the
driverAdapters Preview feature flag:Ensure you update the host value in your connection string to
aws.connect.psdb.cloud. You can learn more about this here.
