Skip to content

Commit 2157c56

Browse files
committed
update netlify cdn config
1 parent a6cc137 commit 2157c56

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ for = "/*"
1111
Access-Control-Allow-Origin = "*"
1212
Referrer-Policy="no-referrer-when-downgrade"
1313
Content-Security-Policy="frame-ancestors *.newrelic.com"
14+
15+
[build.environment]
16+
NETLIFY_IMAGE_CDN = "true"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"scripts": {
177177
"add-files-to-translate": "node scripts/actions/add-files-to-translation-queue.js",
178178
"build:production": "ENVIRONMENT=production yarn run build",
179-
"build": "node scripts/createNetlifyRedirects.mjs & NODE_OPTIONS='--max-old-space-size=5120' NETLIFY_IMAGE_CDN=true gatsby build --prefix-paths",
179+
"build": "node scripts/createNetlifyRedirects.mjs & NODE_OPTIONS='--max-old-space-size=5120' gatsby build --prefix-paths",
180180
"check-for-outdated-translations": "node scripts/actions/check-for-outdated-translations.js",
181181
"clean": "gatsby clean",
182182
"convert-to-webp": "node scripts/convertPNGs.mjs",

0 commit comments

Comments
 (0)