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 = () => {