workers-sdk: π BUG: HYPERDRIVE binding is returning as `undefined` on the `env` worker param
Which Cloudflare product(s) does this pertain to?
Hyperdrive
What version(s) of the tool(s) are you using?
3.11.0 [Wrangler]
What version of Node are you using?
18.14.0
What operating system are you using?
Mac
Describe the Bug
The Hyperdrive binding is being returned as undefined. Iβve done the below steps.
- Created a DB via neon
- Created the hyperdrive config via the wrangler CLI
- Added the ID via the bindings in my
wrangler.toml
[[hyperdrive]]
binding = "HYPERDRIVE"
id = "hyperdrive_id_via_wrangler"
- Logged out the environment as well and am only getting the variables that I have defined directly in the
wrangler.toml. In addition none of the secrets that I have added have actually registered. I had to use a.dev.varsfile in order to get some secrets to take. Iβm unsure if this is wrangler or there is something else outstanding that Iβm missing.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
logging out the env only outputs the variables defined in the wrangler.toml and in the .dev.vars file.
β
οΈ wrangler 3.11.0
-------------------
β² [WARNING] Processing wrangler.toml configuration:
- Hyperdrive Bindings are currently in beta to allow the API to evolve before general
availability.
Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose`
β² [WARNING] Enabling Node.js compatibility mode for built-ins and globals. This is experimental and has serious tradeoffs. Please see https://github.com/ionic-team/rollup-plugin-node-polyfills/ for more details.
Using vars defined in .dev.vars
Your worker has access to the following bindings:
- Hyperdrive Configs:
- HYPERDRIVE: <hyperdrive_id_from_config>
- Vars:
- API_AUTH0_DOMAIN: "__REDACTED__"
- API_AUTH0_CLIENT_ID: "__REDACTED__"
- API_AUTH0_CLIENT_AUDIENCE: "__REDACTED__"
- DATABASE_URL: "(hidden)"
- DIRECT_URL: "(hidden)"
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 16 (8 by maintainers)
Is this still an issue? I canβt see the warning in my console as implemented in https://github.com/cloudflare/workers-sdk/pull/4144 and I canβt see the binding in my env with Remix and remixCloudflareDevProxy() in local.