Environment variables not available when using Wrangler 2 #14924
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: data proxy
Milestone
Bug description
When using the Data Proxy feature on the Cloudflare Workers runtime I'm getting an error caused by what I think is inability of Prisma edge client to access env variables set by Wrangler.
What's important to note is that I'm using Wrangler 2 (what you get by default if you run
npm i wrangler
). It's different than what's used in the ecosystem-tests where the legacy Wrangler 1 is used.How to reproduce
git clone git@github.com:prisma/ecosystem-tests.git
cd ecosystem-tests/dataproxy/cloudflare-workers
npm i
npm i -D wrangler
npm uninstall @cloudflare/wrangler
source ./prepare.sh
usage_model = ''
line fromwrangler.toml
npx prisma generate --data-proxy
npx wrangler dev src/index.ts
Expected behavior
There's no error.
Prisma information
As in the example.
Environment & setup
Prisma Version
Experienced it in my project on
4.2.1
. Reproduced also on4.3.0-dev.48
.The text was updated successfully, but these errors were encountered: