Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit cd67842

Browse files
committed
fix: update gatsby-plugin-newrelic config
1 parent 1cf683d commit cd67842

File tree

2 files changed

+17
-46
lines changed

2 files changed

+17
-46
lines changed

gatsby-config.js

+13-42
Original file line numberDiff line numberDiff line change
@@ -25,49 +25,20 @@ module.exports = {
2525
contentPadding: '28px',
2626
mobileBreakpoint: '760px',
2727
},
28+
/*
29+
;NREUM.loader_config={accountID:"10175106",trustKey:"1",agentID:"21547964",licenseKey:"23448da482",applicationID:"21547964"}
30+
;NREUM.info={beacon:"staging-bam.nr-data.net",errorBeacon:"staging-bam.nr-data.net",licenseKey:"23448da482",applicationID:"21547964",sa:1}
31+
*/
2832
newrelic: {
29-
// Keyed by process.env.NODE_ENV
30-
configs: {
31-
/*
32-
;NREUM.loader_config={accountID:"10175106",trustKey:"1",agentID:"21547964",licenseKey:"23448da482",applicationID:"21547964"}
33-
;NREUM.info={beacon:"staging-bam.nr-data.net",errorBeacon:"staging-bam.nr-data.net",licenseKey:"23448da482",applicationID:"21547964",sa:1}
34-
*/
35-
production: {
36-
instrumentationType: 'proAndSPA', // Options are 'lite', 'pro', 'proAndSPA'
37-
accountId: '10956800',
38-
trustKey: '1',
39-
agentID: '30713728',
40-
licenseKey: 'NRJS-649173eb1a7b28cd6ab',
41-
applicationID: '30713728',
42-
beacon: 'staging-bam-cell.nr-data.net',
43-
errorBeacon: 'staging-bam-cell.nr-data.net',
44-
},
45-
// Our "staging" site (on AWS Amplify) named after the branch it comes from "develop"
46-
47-
/*
48-
;NREUM.loader_config={accountID:"10175106",trustKey:"1",agentID:"21548202",licenseKey:"23448da482",applicationID:"21548202"}
49-
;NREUM.info={beacon:"staging-bam.nr-data.net",errorBeacon:"staging-bam.nr-data.net",licenseKey:"23448da482",applicationID:"21548202",sa:1}
50-
*/
51-
staging: {
52-
instrumentationType: 'proAndSPA', // Options are 'lite', 'pro', 'proAndSPA'
53-
accountId: '10956800',
54-
trustKey: '1',
55-
agentID: '30713728',
56-
licenseKey: 'NRJS-649173eb1a7b28cd6ab',
57-
applicationID: '30713728',
58-
beacon: 'staging-bam-cell.nr-data.net',
59-
errorBeacon: 'staging-bam-cell.nr-data.net',
60-
},
61-
62-
// For local development, uncomment and replace information
63-
// development: {
64-
// instrumentationType: 'proAndSPA', // Options are 'lite', 'pro', 'proAndSPA'
65-
// accountId: '',
66-
// trustKey: '',
67-
// agentID: '',
68-
// licenseKey: '',
69-
// applicationID: ''
70-
// }
33+
config: {
34+
instrumentationType: 'proAndSPA',
35+
accountId: '10956800',
36+
trustKey: '1',
37+
agentID: '30713728',
38+
licenseKey: 'NRJS-649173eb1a7b28cd6ab',
39+
applicationID: '30713728',
40+
beacon: 'staging-bam-cell.nr-data.net',
41+
errorBeacon: 'staging-bam-cell.nr-data.net',
7142
},
7243
},
7344
segment: {

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@
6868
"license": "Apache-2",
6969
"scripts": {
7070
"build": "gatsby build",
71-
"build:production": "GATSBY_NEWRELIC_ENV=production yarn build",
72-
"build:staging": "GATSBY_NEWRELIC_ENV=staging yarn build",
73-
"develop": "yarn clean && GATSBY_NEWRELIC_ENV=production gatsby develop",
71+
"build:production": "yarn build",
72+
"build:staging": "yarn build",
73+
"develop": "yarn clean && gatsby develop",
7474
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
75-
"start": "GATSBY_NEWRELIC_ENV=development yarn develop",
75+
"start": "yarn develop",
7676
"serve": "gatsby serve",
7777
"clean": "gatsby clean",
7878
"test": "jest",

0 commit comments

Comments
 (0)