-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
Description
Describe the bug
Hey guys, is there a way i can debug whats going on here: Locally on my macbook i can deploy, on my mac pro i cant (get the same issue) and every standard deployment build fails in the cloudflare dashboard with the following:
| 13:50:15.573 | Populating KV incremental cache... |
|---|---|
| 13:50:15.584 | Inserting 200 assets to KV in chunks of 25 |
| 13:50:15.972 | ERROR Wrangler command failed |
| 13:50:16.032 | 12%|█████ | 1/8 [00:00:<00:00:, 0.00it/s] ELIFECYCLE Command failed with exit code 1. |
| 13:50:16.061 | Failed: error occurred while running deploy command |
Thats all, nothing is written to KV. Can we skip this?
I've downgraded openNext to a older version as we have another replicated project thats running fine.
Steps to reproduce
Deploy a ISR project using the recommended setup
My wrangler file:
{
"$schema": "node_modules/wrangler/config-schema.json",
"main": ".open-next/worker.js",
"name": "uber-uat",
"compatibility_date": "2025-11-17",
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
"account_id": "XXX",
"minify": true,
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS"
},
"observability": {
"enabled": true
},
"placement": {
"mode": "smart"
},
"preview_urls": false,
"keep_vars": true,
"durable_objects": {
"bindings": [
{
"name": "NEXT_CACHE_DO_QUEUE",
"class_name": "DOQueueHandler"
},
{
"name": "NEXT_TAG_CACHE_DO_SHARDED",
"class_name": "DOShardedTagCache"
},
{
"name": "NEXT_CACHE_DO_PURGE",
"class_name": "BucketCachePurge"
}
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": ["DOQueueHandler", "DOShardedTagCache", "BucketCachePurge"]
}
],
"kv_namespaces": [
{
"binding": "NEXT_INC_CACHE_KV",
"id": "XXX"
}
],
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
"service": "uber-uat"
}
]
}
Opennext config:
import { defineCloudflareConfig } from '@opennextjs/cloudflare'
import { purgeCache } from '@opennextjs/cloudflare/overrides/cache-purge/index'
import kvIncrementalCache from '@opennextjs/cloudflare/overrides/incremental-cache/kv-incremental-cache'
import doQueue from '@opennextjs/cloudflare/overrides/queue/do-queue'
import doShardedTagCache from '@opennextjs/cloudflare/overrides/tag-cache/do-sharded-tag-cache'
export default defineCloudflareConfig({
incrementalCache: kvIncrementalCache,
queue: doQueue,
tagCache: doShardedTagCache({
baseShardSize: 12,
regionalCache: true, // Enable regional cache to reduce the load on the DOs
regionalCacheTtlSec: 5, // The TTL for the regional cache
shardReplication: {
numberOfSoftReplicas: 4,
numberOfHardReplicas: 2,
regionalReplication: {
defaultRegion: 'enam'
}
}
}),
enableCacheInterception: true,
// you can also use the `durableObject` option to use a durable object as a cache purge
cachePurge: purgeCache({ type: 'durableObject' })
})
Expected behavior
Cache populates
@opennextjs/cloudflare version
1.14.3
Wrangler version
4.53.0
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 22.13.0
npm: 11.6.0
Yarn: N/A
pnpm: 10.22.0
Relevant Packages:
next: 15.5.5
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.9.3
Next.js Config:
output: N/AAdditional context
No response