General Contact
12/05/2021, 9:10 PMpreviewFeatures = ["dataProxy"]
to my schema.prisma, I get the following error InvalidDatasourceError: Datasource URL should use prisma:// protocol
. How do I turn off dataProxy for local dev?nikolasburk
previewFeatures = ["dataProxy"]
line in local development. Are you using env vars to configure your DB connection?millsp
12/06/2021, 10:32 AMengineType = "dataproxy"
in your schema, set a shell env var instead:
⦠PRISMA_CLIENT_ENGINE_TYPE=library
for regular prisma client
⦠PRISMA_CLIENT_ENGINE_TYPE=dataproxy
for the data proxy client
⢠If you have an URL that is har-coded in the schema, use an env var in the schema:
⦠url = env("DATA_PROXY_URL")
millsp
12/06/2021, 10:33 AM.env
files, one for pro and one for dev.