Closed jeremyjacob closed 1 year ago
See https://github.com/aiji42/prisma-data-proxy-alt#launch-proxy-server
This will bring up the proxy server, but it must be SSL-enabled to connect from @prisma/client. So here are the steps to establish a local connection with SSL using docker-compose and https-portal with a self certificate.
@prisma/client
communicates over https when in data proxy mode, even if local.
@jeremyjacob Hello, please, did you manage to run this on deno deploy by any chance?
At the time I was running this locally—not on Deno Deploy.
Hi, thank you for your work on this project, it's been a real help using Prisma with Deno.
However, when trying to use the proxy I get an error:
First thing I noticed was that it was trying to use
https://
. Is this perhaps the issue?I put a console.log in the beforeMiddleware.js to log every request. Requests sent manually via curl to the proxy-alt server log to the console, but when using the Prisma client nothing gets logged, possibly indicating it never actually reached the server. I have a feeling it's expecting an https response and getting an http one, or something along those lines.
I'd like to run the proxy on localhost for integration tests :)