From a54d5126b2499c1c4770272b451de1801a4227ab Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Tue, 29 Oct 2024 16:20:02 +0000 Subject: [PATCH] tweak setting to exclude branches on roadie site --- gatsby-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 6491f882b..fd2af3d30 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -48,8 +48,9 @@ const getSiteUrl = () => { }; const shouldCrawl = () => { + const ctx = get(process.env, 'CONTEXT'); const netlifySiteName = get(process.env, 'SITE_NAME'); - return (netlifySiteName === 'roadie'); + return (netlifySiteName === 'roadie') && (ctx !== 'deploy-preview'); }; const getContentfulOptions = () => {