diff --git a/packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts b/packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts index 190180fe..9c5e5b3e 100644 --- a/packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts +++ b/packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts @@ -35,7 +35,7 @@ rule: pattern: let [$CLONED1, $CLONED2] fix: | - globalThis.__openNextAls.getStore().waitUntil($PROMISE); + globalThis.__openNextAls?.getStore()?.waitUntil?.($PROMISE); return $CLONED2; `;