Skip to content

Commit 0ca4c3a

Browse files
authored
chore(gatsby-source-contentful): rename env var to proper struct (#27695)
1 parent c947568 commit 0ca4c3a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/gatsby-source-contentful/src/extend-node-type.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ const cacheImage = require(`./cache-image`)
2525

2626
if (process.env.GATSBY_REMOTE_CACHE) {
2727
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`
2934
)
3035
}
3136
const REMOTE_CACHE_FOLDER =
37+
process.env.GATSBY_CONTENTFUL_EXPERIMENTAL_REMOTE_CACHE ??
3238
process.env.GATSBY_REMOTE_CACHE ??
3339
path.join(process.cwd(), `.cache/remote_cache`)
3440
const CACHE_IMG_FOLDER = path.join(REMOTE_CACHE_FOLDER, `images`)

0 commit comments

Comments
 (0)