Skip to content

Commit 753acf9

Browse files
committed
Exclude fathom plugin entirely if no siteID set
1 parent 59df4dc commit 753acf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gatsby-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ module.exports = {
366366
id: process.env.GTM_ID,
367367
},
368368
},
369-
{
369+
process.env.FATHOM_SITE_ID && {
370370
resolve: "@raae/gatsby-plugin-fathom",
371371
options: {
372372
site: process.env.FATHOM_SITE_ID,
@@ -406,5 +406,5 @@ module.exports = {
406406
skipIndexing: process.env.INDEX_ON_BUILD !== "true",
407407
},
408408
},
409-
],
409+
].filter((p) => !!p),
410410
};

0 commit comments

Comments
 (0)