DATABASE_URL is baked in Dataproxy client proxy.js #11458
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: data proxy
Milestone
Bug description
When using
previewFeatures = ["dataProxy"]
the connection string is baked into the client when runningprisma generate
.There is no way to either set it via environment variable nor passing it to the client on instantiation.
How to reproduce
Checkout example from my Example Code based on the Prisma Starter and run
yarn install
DATABASE_URL=INVALID
yarn run generate
yarn run dev
Will fail with P5002
Happy path is above setting env to valid path before client generation.
Expected behavior
Can be passed in like
or in
.env
file withPrisma information
prisma 3.7.0 or ^3.8.1
Environment & setup
Prisma Version
(tested with those versions)
The text was updated successfully, but these errors were encountered: