File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/cloudflare/src/cli/build/patches/plugins Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ import { getCrossPlatformPathRegex } from "@opennextjs/aws/utils/regex.js" ;
12import { patchCode } from "../ast/util.js" ;
23import type { ContentUpdater } from "./content-updater.js" ;
34
@@ -16,7 +17,10 @@ export function patchFetchCacheSetMissingWaitUntil(updater: ContentUpdater) {
1617 return updater . updateContent (
1718 "patch-fetch-cache-set-missing-wait-until" ,
1819 {
19- filter : / ( s e r v e r \/ c h u n k s \/ .* \. j s | .* \. r u n t i m e \. .* \. j s | p a t c h - f e t c h \. j s ) $ / ,
20+ filter : getCrossPlatformPathRegex (
21+ String . raw `(server/chunks/.*\.js|.*\.runtime\..*\.js|patch-fetch\.js)$` ,
22+ { escape : false }
23+ ) ,
2024 contentFilter : / a r r a y B u f f e r \( \) \s * \. t h e n / ,
2125 } ,
2226 ( { contents } ) => {
You can’t perform that action at this time.
0 commit comments