Skip to content

Commit 6166646

Browse files
apply more strict filtering
1 parent 61484b6 commit 6166646

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cloudflare/src/cli/build/patches/plugins/fetch-cache-wait-until.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import type { ContentUpdater } from "./content-updater.js";
1515
export function patchFetchCacheSetMissingWaitUntil(updater: ContentUpdater) {
1616
return updater.updateContent(
1717
"patch-fetch-cache-set-missing-wait-until",
18-
{ filter: /\.(js|mjs|cjs|jsx|ts|tsx)$/, contentFilter: /Failed to set fetch cache/ },
18+
{
19+
filter: /(server\/chunks\/.*\.js|.*\.runtime\..*\.js|patch-fetch\.js)$/,
20+
contentFilter: /Failed to set fetch cache/,
21+
},
1922
({ contents }) => {
2023
contents = patchCode(contents, ruleForMinifiedCode);
2124
return patchCode(contents, ruleForNonMinifiedCode);

0 commit comments

Comments
 (0)