• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #13042

pending completion
#13042

push

circleci

mansaj
Merge branch 'main' into MNTOR-1356

282 of 1601 branches covered (17.61%)

Branch coverage included in aggregate %.

433 of 433 new or added lines in 31 files covered. (100.0%)

959 of 4327 relevant lines covered (22.16%)

1.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/middleware/noSearchEngineIndex.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import AppConstants from '../app-constants.js'
6

7
const { NODE_ENV } = AppConstants
×
8
const noindexEnvs = ['dev', 'heroku', 'stage']
×
9
const noSearchEngineIndex = !noindexEnvs.includes(NODE_ENV)
×
10
  ? (_req, _res, next) => next()
×
11
  : (_req, res, next) => {
12
      res.header('X-Robots-Tag', 'noindex')
×
13
      next()
×
14
    }
15

16
export { noSearchEngineIndex }
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc