Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,13 @@ module.exports = {
'6LeGFt8UAAAAANfnpE8si2Z6NnAqYKnPAYgMpStu',
},
newRelicRequestingServicesHeader: 'docs-website',
segment: {
// Segment analytics commented out to avoid costs and unnecessary data collection
// Uncomment if Segment tracking is needed again
/* segment: {
segmentWriteKey: 'noviNOFjASOSPcSEAkwoRxOt0Y1719KD',
section: 'docs',
platform: 'docs_pages',
},
}, */
},
},
],
Expand Down
8 changes: 8 additions & 0 deletions gatsby/on-render-body.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const onRenderBody = async ({ setPostBodyComponents }) => {
// Analytics tracking commented out to avoid Netlify edge function costs
// and unnecessary data collection. Uncomment if tracking is needed again.

/*
const linkedInId = (
<script
type="text/javascript"
Expand Down Expand Up @@ -75,6 +79,10 @@ const onRenderBody = async ({ setPostBodyComponents }) => {
);

setPostBodyComponents([linkedInId, linkedInFunc, linkedInImg, marketo]);
*/

// No analytics components loaded to reduce costs
setPostBodyComponents([]);
};

export default onRenderBody;
9 changes: 6 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ package = "@netlify/plugin-gatsby"
[functions]
included_files = ["!.cache/data/datastore/data.mdb","!.cache/query-engine"]

[[edge_functions]]
function = "inject-country" # Matches the filename without .js
path = "/*" # Apply to all HTML pages served by Netlify
# Edge functions commented out to avoid costs
# Uncomment if country-based functionality is needed again
# [[edge_functions]]
# function = "inject-country" # Matches the filename without .js
# path = "/*" # Apply to all HTML pages served by Netlify


[[headers]]
for = "/*"
Expand Down
7 changes: 6 additions & 1 deletion netlify/edge-functions/inject-country.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// EDGE FUNCTION DISABLED - This function has been disabled in netlify.toml
// The function was originally created to inject country codes for cookie consent
// but is not currently needed. Can be re-enabled if country-based functionality
// is required in the future.

export default async (request, context) => {
const response = await context.next();

Expand Down Expand Up @@ -40,4 +45,4 @@ export default async (request, context) => {
statusText: response.statusText,
headers: response.headers,
});
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@emotion/styled": "^11.3.0",
"@mdx-js/mdx": "2.0.0-next.8",
"@mdx-js/react": "2.0.0-next.8",
"@newrelic/gatsby-theme-newrelic": "9.12.2",
"@newrelic/gatsby-theme-newrelic": "9.12.3",
"@splitsoftware/splitio-react": "^1.2.4",
"ansi-colors": "^4.1.3",
"cockatiel": "^3.0.0-beta.0",
Expand Down
Loading
Loading