diff --git a/config/hof-defaults.js b/config/hof-defaults.js index 20ffa2fb..9962792b 100644 --- a/config/hof-defaults.js +++ b/config/hof-defaults.js @@ -30,6 +30,7 @@ const defaults = { return convertPage(page); } }, + deIndexForm: process.env.DEINDEX_FORM || 'false', gaCrossDomainTrackingTagId: process.env.GDS_CROSS_DOMAIN_GA_TAG, loglevel: process.env.LOG_LEVEL || 'info', ignoreMiddlewareLogs: ['/healthz'], diff --git a/index.js b/index.js index 49acc47d..bd100132 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,7 @@ const router = require('./lib/router'); const health = require('./lib/health'); const serveStatic = require('./lib/serve-static'); const gaTagSetup = require('./lib/ga-tag'); +const deIndexer = require('./lib/deindex'); const sessionStore = require('./lib/sessions'); const settings = require('./lib/settings'); const defaults = require('./config/hof-defaults'); @@ -198,6 +199,7 @@ function bootstrap(options) { serveStatic(app, config); settings(app, config); gaTagSetup(app, config); + deIndexer(app, config); const sessions = sessionStore(app, config); app.use('/healthz', health(sessions));