I'm trying to implement the new data proxy connect...
# orm-help
i
I'm trying to implement the new data proxy connection string for my nextJs project and when I push to Vercel I get the error:
Error validating datasource `db`: the URL must start with the protocol
postgresql://
or
postgres://
To use a URL with protocol
prisma://
the Data Proxy must be enabled via
prisma generate --data-proxy
.
But as per the docs, I have added the line "PRISMA_GENERATE_DATAPROXY=true" into my .env.production, yet somehow it just seems ignored?
1
h
Hey @Ivan Lukianchuk 👋 Try adding
PRISMA_CLIENT_ENGINE_TYPE=dataproxy
into your
.env
file.
n
On the latest version, you either set
PRISMA_CLIENT_ENGINE_TYPE=dataproxy
in env variables or while generating prisma client with command
npx prisma generate
you can pass
--data-proxy
flag. So the command would be
npx prisma generate --data-proxy
.
fast parrot 1