Skip to content

Commit

Permalink
tweak setting to exclude branches on roadie site
Browse files Browse the repository at this point in the history
  • Loading branch information
punkle committed Nov 12, 2024
1 parent 2eb3187 commit 6b1b1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 6b1b1d2

Please sign in to comment.