My build attempt hasn't been progressed due to probably RPC
I tried to build a Cloudflare Workers project which has
prisma
and ran npx prisma migrate deploy
in the build env, but it hasn't been finished. I added DEBUG=*
on the command and I found the last log was
20:13:28.561 prisma:getConfig config data retrieved without errors in getConfig Wasm +2ms
In my local env, the next stdout is:
prisma:schemaEngine:rpc SENDING RPC CALL ...
It seems prisma migrate
does RPC in the command (probably). I suspect we can't do RPC in Cloudflare Workers build env. Does someone know about it? Please tell me the solution if someone solved or avoided the same or a similar issue.1 Reply
Sorry I solved the issue. Probably "Transaction mode" connection string as DATABASE_URL when migrating, but it seems we can't do migration to the url. If we do migration, we need to use "Session mode" connection string.I moved migration workload to Github Actions but I saw the same issue. I changed DATABASE_URL and then the migration succeeded. I haven't tried it on Cloudflare Workers build but I think it will work on the env too. Thanks