this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(images): allow any local path when no localPatterns are specified (#1032)

authored by

Victor Berchet and committed by
GitHub
1de4899e 07919d84

+8 -1
+8 -1
packages/cloudflare/src/cli/build/open-next/compile-images.ts
··· 79 79 80 80 const defaultMinimumCacheTTLSec = 14400; 81 81 82 - const defaultLocalPatterns = { pathname: "/**" }; 82 + // Allow any local image when no localPatterns are specified. 83 + // This regexp was generated using the image manifest generated by setting the local patterns 84 + // to [{ pathname: "/**" }] in the next config. 85 + const defaultLocalPatterns = [ 86 + { 87 + pathname: "^(?:\\/(?!\\.{1,2}(?:\\/|$))(?:(?:(?!(?:^|\\/)\\.{1,2}(?:\\/|$)).)*?))$", 88 + }, 89 + ];