Run worker locally (with Wrangler) with MySQL Docker image

Our current setup is: - Production using PlanetScale database with Prisma and the @prisma/adapter-planetscale adapter - Development using a simple MySQL docker image When we want to run our Worker(s) locally, it gives errors, because plain Prisma with MySQL is not supported on the (local) Cloudflare Workers runtime:
Error: PrismaClientValidationError: PrismaClient failed to initialize because it wasn't configured to run in this environment (Cloudflare Workers).
In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:
- Enable Driver Adapters: https://pris.ly/d/driver-adapters
- Enable Accelerate: https://pris.ly/d/accelerate
Error: PrismaClientValidationError: PrismaClient failed to initialize because it wasn't configured to run in this environment (Cloudflare Workers).
In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:
- Enable Driver Adapters: https://pris.ly/d/driver-adapters
- Enable Accelerate: https://pris.ly/d/accelerate
What is the recommended workflow when we want to run the workers locally with a plain Docker MySQL instance?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server