From 916ca023bf3c322f1d9d95e7776fcc0ad616f365 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 11 May 2021 12:29:44 +0200 Subject: [PATCH] fix: only generate bundle stats during CI (#42094) * fix: only generate bundle stats during CI * fix: run if CI exists --- client/gatsby-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gatsby-config.js b/client/gatsby-config.js index 976e8a4a11..3e4ad85b5e 100644 --- a/client/gatsby-config.js +++ b/client/gatsby-config.js @@ -28,7 +28,7 @@ module.exports = { resolve: 'gatsby-plugin-webpack-bundle-analyser-v2', options: { analyzerMode: 'disabled', - generateStatsFile: true + generateStatsFile: process.env.CI } }, 'gatsby-plugin-react-helmet',