Hi there!
We are on data proxy early access program and realized we want a way to bypass data proxy when running our CI/CD tests.
Do you currently have an undocumented way of doing this or would it require a script to rewrite schema.prisma config only for tests?
Rodrigo Oliveira
11/02/2021, 11:12 AM
cc @Pieter
r
Ryan
11/02/2021, 11:32 AM
To bypass data proxy, you just don’t pass the
PRISMA_CLIENT_ENGINE_TYPE
env variable.
r
Rodrigo Oliveira
11/02/2021, 11:48 AM
@Ryan Weird, this is exactly how we had it and it didn't work (code below for reference)
I will investigate a little more as Vercel may be overwriting the env var
Rodrigo Oliveira
11/02/2021, 7:12 PM
@Ryan You were right on that, we were able to bypass data proxy
🙌 1
💯 1
p
Pieter
11/02/2021, 7:33 PM
yep the .env file wasnt being read by CI so had to explicitly set it in the yml file