@aziontech/opennextjs-azion
Version:
Azion builder for next apps
4 lines (3 loc) • 731 B
TypeScript
import type { CodePatcher } from "@opennextjs/aws/build/patch/codePatcher.js";
export declare const rule = "\nrule:\n kind: call_expression\n pattern: $PROMISE\n all:\n - has: { pattern: $_.arrayBuffer().then, stopBy: end }\n - has: { pattern: \"Buffer.from\", stopBy: end }\n - any:\n - inside:\n kind: sequence_expression\n inside:\n kind: return_statement\n - inside:\n kind: expression_statement\n precedes:\n kind: return_statement\n - has: { pattern: $_.FETCH, stopBy: end }\n\nfix: |\n globalThis.__openNextAls?.getStore()?.waitUntil?.($PROMISE)\n";
export declare const patchFetchCacheSetMissingWaitUntil: CodePatcher;