Vajr
Vajr
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
yeah, i tried that as well. The documentation seems vague but what i understand is that regular non 'edge' use of prsima accelerate works fine on a local db instance but if i am using it on edge middleware or cloudflare workers then there is no other option but to use a remotely hosted db instance.
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
If I read this right, does the doc suggest another remote db for connection pooling? besides the one that i have locally?
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
it works for everything except for edge middleware in nextjs
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
my env vars: DATABASE_URL="postgresql://admin:admin@localhost:26257/defaultdb?sslmode=disable" DIRECT_DATABASE_URL="postgresql://admin:admin@localhost:26257/defaultdb?sslmode=disable"
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
this is the error i am getting
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
{"name":"PrismaClientValidationError","source":"edge-server","message":"Invalid client engine type, please use library or binary","stack":"PrismaClientValidationError: Invalid client engine type, please use library or binary\n at gs (webpack-internal:///(middleware)/./node_modules/@prisma/client/runtime/edge.js:12:65)\n
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
while the edge middlewware ran, yes
13 replies
PPrisma
Created by Vajr on 10/23/2024 in #help-and-questions
How to use prisma accelerate on edge functions in local environment?
i tried everything mentioned here and still had the issue. maybe i will try again tomorrow as the day is wrapping up. and see if i missed something and report back
13 replies