Skip to content

fix(meta): add noindex for non-production environments#17569

Merged
pettinarip merged 1 commit into
devfrom
seo/018-noindex-staging
Feb 16, 2026
Merged

fix(meta): add noindex for non-production environments#17569
pettinarip merged 1 commit into
devfrom
seo/018-noindex-staging

Conversation

@minimalsm
Copy link
Copy Markdown
Contributor

@minimalsm minimalsm commented Feb 15, 2026

Summary

  • Adds <meta name="robots" content="noindex, nofollow"> on non-production environments
  • Belt-and-suspenders safeguard alongside existing robots.txt disallow
  • Uses SITE_URL constant (from NEXT_PUBLIC_SITE_URL env var)
  • Production (https://ethereum.org) is unaffected

Test plan

  • Non-production pages have <meta name="robots" content="noindex, nofollow">
  • Production pages unaffected (no noindex meta)
  • Verify NEXT_PUBLIC_SITE_URL is set correctly in Netlify staging config

Adds a meta robots noindex/nofollow tag on non-production environments
as an additional safeguard alongside the existing robots.txt disallow.
Uses the SITE_URL constant which reads from NEXT_PUBLIC_SITE_URL.
@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Feb 15, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 15, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit a33819c
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69920295950cfb0008df7c67
😎 Deploy Preview https://deploy-preview-17569.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: 61 (🟢 up 6 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (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.

@pettinarip pettinarip self-requested a review February 16, 2026 13:41
@pettinarip pettinarip merged commit 326e540 into dev Feb 16, 2026
9 checks passed
@pettinarip pettinarip deleted the seo/018-noindex-staging branch February 16, 2026 14:03
@pettinarip pettinarip mentioned this pull request Feb 19, 2026
@pettinarip pettinarip mentioned this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants