diff --git a/src/routes/index.js b/src/routes/index.js index 0a0873a..d755e9d 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -199,8 +199,8 @@ router.post('/receive_submission', async function(req, res) { const {channel, is_schedule} = JSON.parse(res_data.view.private_metadata); let submission = { - throttling: true, - performance: true, + throttling: false, + performance: false, seo: false, pwa: false, 'best-practices': false, diff --git a/src/utils/lighthouse.js b/src/utils/lighthouse.js index 0f797db..a4af532 100644 --- a/src/utils/lighthouse.js +++ b/src/utils/lighthouse.js @@ -57,8 +57,7 @@ async function launchPuppeteer(url, options) { if (options.seo) opts.onlyCategories.push('seo'); // as throttling is enabled by default in lighthouse, disable it if explicitly unchecked - console.log(options.throttling) - if (options.throttling === false || options.throttling === 'false') { + if (options.throttling === false) { // Values referenced in // https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/constants.js opts.throttlingMethod = 'provided'; @@ -71,6 +70,7 @@ async function launchPuppeteer(url, options) { downloadThroughputKbps: 0, uploadThroughputKbps: 0, }; + opts.formFactor = 'desktop' opts.screenEmulation = { mobile: false, width: 1350,