Set up
To get started:1
Install the Prisma driver adapter for PlanetScale (
@prisma/adapter-planetscale) and PlanetScale serverless driver (@planetscale/database) packages:2
Update your
prisma/schema.prisma file:Ensure 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:

