We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6552a2 commit b5b41a0Copy full SHA for b5b41a0
packages/gatsby-plugin-benchmark-reporting/src/gatsby-node.js
@@ -157,11 +157,6 @@ class BenchMeta {
157
`find public .cache -type f -iname "*.bmp" -or -iname "*.tif" -or -iname "*.webp" -or -iname "*.svg" | wc -l`
158
)
159
160
- const pageCount = glob(`**/**.json`, {
161
- cwd: `./public/page-data`,
162
- nocase: true,
163
- }).length
164
-
165
const benchmarkMetadata = this.getMetadata()
166
167
return {
@@ -181,7 +176,7 @@ class BenchMeta {
181
176
webpack: webpackVersion,
182
177
},
183
178
counts: {
184
- pages: pageCount,
179
+ pages: parseInt(process.env.NUM_PAGES),
185
180
jpgs: jpgCount,
186
pngs: pngCount,
187
gifs: gifCount,
0 commit comments