docs icon indicating copy to clipboard operation
docs copied to clipboard

Update "Local development for Prisma Accelerate" for Prisma 7

Open ryanburns23 opened this issue 2 weeks ago • 0 comments

This doc is out of date for Prisma v7.

When testing, I found that passing a local database string to accelerateUrl causes the error:

Unhandled Rejection: Error [InvalidDatasourceError]: Error validating accelerateUrl: the URL must start with the protocol prisma:// or prisma+postgres://

This makes it difficult to test edge functionality locally. A workaround is to use @prisma/adapter-pg only in local development and accelerateUrl in prod.

https://github.com/prisma/docs/blob/main/content/300-accelerate/580-local-development.mdx

ryanburns23 avatar Dec 10 '25 21:12 ryanburns23