Skip to content

Commit e01a3da

Browse files
committed
prevent the cache population script from discovering wrangler config
1 parent 4b9be37 commit e01a3da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ async function populateR2IncrementalCache(
270270
// Start a local worker and proxy it to the Cloudflare network when remote mode is enabled.
271271
const worker = await unstable_startWorker({
272272
name: "open-next-cache-populate",
273+
// Prevent it from discovering the project's wrangler config and leaking unrelated bindings.
274+
config: "",
273275
entrypoint: handlerPath,
274276
compatibilityDate: "2026-01-01",
275277
bindings: {

0 commit comments

Comments
 (0)