File tree 1 file changed +7
-1
lines changed
packages/gatsby-source-contentful/src 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,16 @@ const cacheImage = require(`./cache-image`)
25
25
26
26
if ( process . env . GATSBY_REMOTE_CACHE ) {
27
27
console . warn (
28
- `Please be aware that the \`GATSBY_REMOTE_CACHE\` env flag is not officially supported and could be removed at any time`
28
+ `Note: \`GATSBY_REMOTE_CACHE\` will be removed soon because it has been renamed to \`GATSBY_CONTENTFUL_EXPERIMENTAL_REMOTE_CACHE\``
29
+ )
30
+ }
31
+ if ( process . env . GATSBY_CONTENTFUL_EXPERIMENTAL_REMOTE_CACHE ) {
32
+ console . warn (
33
+ `Please be aware that the \`GATSBY_CONTENTFUL_EXPERIMENTAL_REMOTE_CACHE\` env flag is not officially supported and could be removed at any time`
29
34
)
30
35
}
31
36
const REMOTE_CACHE_FOLDER =
37
+ process . env . GATSBY_CONTENTFUL_EXPERIMENTAL_REMOTE_CACHE ??
32
38
process . env . GATSBY_REMOTE_CACHE ??
33
39
path . join ( process . cwd ( ) , `.cache/remote_cache` )
34
40
const CACHE_IMG_FOLDER = path . join ( REMOTE_CACHE_FOLDER , `images` )
You can’t perform that action at this time.
0 commit comments