Hyperdrive not working on local environment

Hi, I'm getting an error from hyperdrive.
✘ [ERROR] When developing locally, you should use a local Postgres connection string to emulate Hyperdrive functionality. Please setup Postgres locally and set the value of the 'WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE' variable or "HYPERDRIVE"'s "localConnectionString" to the Postgres connection string.
✘ [ERROR] When developing locally, you should use a local Postgres connection string to emulate Hyperdrive functionality. Please setup Postgres locally and set the value of the 'WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE' variable or "HYPERDRIVE"'s "localConnectionString" to the Postgres connection string.
I'm not sure what does that mean? I added a WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE variable on wrangler.toml file under [vars] but still not working
3 Replies
Sakib
SakibOP11mo ago
I already have a local postgres database running
Hello, I’m Allie!
You have to add it as an environment variable to your shell
Sakib
SakibOP11mo ago
@HardlyWorkin' thanks
Want results from more Discord servers?
Add your server