diff --git a/config.json.example b/config.json.example index 9fa012240d..ca012501bb 100644 --- a/config.json.example +++ b/config.json.example @@ -20,6 +20,7 @@ "STRIPE_API_KEY":"aaaabbbbccccddddeeeeffff00001111", "STRIPE_PUB_KEY":"22223333444455556666777788889999", "NEW_RELIC_LICENSE_KEY":"NEW_RELIC_LICENSE_KEY", + "NEW_RELIC_NO_CONFIG_FILE":"true", "NEW_RELIC_APPLICATION_ID":"NEW_RELIC_APPLICATION_ID", "NEW_RELIC_API_KEY":"NEW_RELIC_API_KEY", "GA_ID": "GA_ID", diff --git a/website/src/libs/api-v3/newrelic.js b/website/src/libs/api-v3/newrelic.js deleted file mode 100644 index 28ff64c688..0000000000 --- a/website/src/libs/api-v3/newrelic.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -// We can't rely on babel here -// because the file is requested directly by the new relic module - -const nconf = require('nconf'); - -// IMPORTANT remember to set the location of this file using the NEW_RELIC_HOME env variable -// more info here https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration - -exports.config = { - app_name: nconf.get('NEW_RELIC_APP_NAME'), // eslint-disable-line camelcase - license_key: nconf.get('NEW_RELIC_LICENSE_KEY'), // eslint-disable-line camelcase - logging: { - /** - * Level at which to log. 'trace' is most useful to New Relic when diagnosing - * issues with the agent, 'info' and higher will impose the least overhead on - * production applications. - */ - level: 'info', - }, -};