Skip to content

fix: remove invalid context-specific headers from netlify.toml#17749

Merged
wackerow merged 1 commit into
devfrom
fix/remove-invalid-netlify-headers
Mar 10, 2026
Merged

fix: remove invalid context-specific headers from netlify.toml#17749
wackerow merged 1 commit into
devfrom
fix/remove-invalid-netlify-headers

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Mar 10, 2026

Summary

  • Removes the [[context.*.headers]] blocks from netlify.toml — this syntax is not supported by Netlify for scoping headers per deploy context
  • The remaining SEO protections (robots.txt disallow + noindex meta tags via IS_PRODUCTION_DEPLOY) still work correctly

Test plan

  • Verify build succeeds
  • Verify production deploy is unaffected

Netlify does not support `[[context.*.headers]]` syntax in netlify.toml.
Headers cannot be scoped per deploy context directly. Removing the broken
X-Robots-Tag header blocks — the remaining SEO protections (robots.txt
disallow and noindex meta tags) still work correctly.
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 10, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 0eab0c3
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69b04c88536b010008f9eeb0
😎 Deploy Preview https://deploy-preview-17749.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 56 (🟢 up 3 from production)
Accessibility: 94 (🟢 up 1 from production)
Best Practices: 100 (no change from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the config ⚙️ Changes to configuration files label Mar 10, 2026
@wackerow wackerow merged commit 59433ec into dev Mar 10, 2026
8 checks passed
@wackerow wackerow deleted the fix/remove-invalid-netlify-headers branch March 10, 2026 22:45
@wackerow wackerow mentioned this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config ⚙️ Changes to configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants