-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
I've CI action setup in Github for checking that my application builds, along with CD action to deploy my app into Cloudflare.
The issue I ran today is that after I added Hyperdrive-bindings into wrangler.jsonc, I'm no longer able to build applcation in Github, because build is expecting environment having CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE
$pnpm opennextjs-cloudflare build
┌─────────────────────────────┐
│ OpenNext — Cloudflare build │
└─────────────────────────────┘
App directory: /home/user/my-project
Next.js version : 15.5.5
@opennextjs/cloudflare version: 1.11.0
@opennextjs/aws version: 3.8.5
┌─────────────────────────────────┐
│ OpenNext — Building Next.js app │
└─────────────────────────────────┘
> nextjs-web@0.1.0 build /home/user/my-project
> next build
▲ Next.js 15.5.5
- Environments: .env.local
unhandledRejection [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 'CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE' variable or "HYPERDRIVE"'s "localConnectionString" to the Postgres connection string.] {
telemetryMessage: 'no local hyperdrive connection string'
}
ELIFECYCLE Command failed with exit code 1.I wonder if there's a way for building app flagged as CI build? I tried --skipWranglerConfigCheck parameter for build, but ended up with same issue.
Metadata
Metadata
Assignees
Labels
No labels