Open
Description
Describe the bug
I'm using a hyperdrive binding in my project.
Currently, I have WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE set in my .env file, and not "localConnectionString". It works when I do pnpm dev
.
It results in the following error:
Populating R2 incremental cache...
/home/user/project/node_modules/.pnpm/wrangler@4.18.0/node_modules/wrangler/wrangler-dist/cli.js:176390
throw new UserError(
^
UserError: 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.
Steps to reproduce
Create a project using a Hyperdrive binding without localConnectionString set, and set up R2 incremental cache.
Expected behavior
It should deploy using the value from .env
.
@opennextjs/cloudflare version
1.1.0
Wrangler version
4.18.0
next info output
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Fri May 9 20:11:19 UTC 2025
Available memory (MB): 15668
Available CPU cores: 12
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: N/A
pnpm: 10.9.0
Relevant Packages:
next: 15.3.2 // There is a newer version (15.3.3) available, upgrade recommended!
eslint-config-next: 15.3.2
react: 19.1.0
react-dom: 19.1.0
typescript: 5.8.3
Next.js Config:
output: N/A
⚠ There is a newer version (15.3.3) available, upgrade recommended!
Additional context
No response