Skip to content

[codex] Prevent indexing development builds#81

Draft
cormoran wants to merge 1 commit into
mainfrom
prevent-dev-build-indexing
Draft

[codex] Prevent indexing development builds#81
cormoran wants to merge 1 commit into
mainfrom
prevent-dev-build-indexing

Conversation

@cormoran

Copy link
Copy Markdown
Owner

Description

Development and preview builds now emit a robots meta tag with noindex, nofollow by default so search engines do not index them.

The release workflow explicitly sets VITE_ROBOTS to index, follow, preserving indexing for the production release build.

CLA (Contributor License Agreement)

By submitting this pull request, I agree that my contributions
are licensed under the project's current license.

I also grant the maintainer(s) of this project the right to relicense
my contributions under any license, for use in future versions of the project.
This does not affect the license of any previously released versions.

Validation

  • npm run lint
  • npm test
  • npm run build
  • env VITE_ROBOTS='index, follow' npm run build
  • Confirmed dist/index.html contains noindex, nofollow by default and index, follow when VITE_ROBOTS is set.

@github-actions

Copy link
Copy Markdown

🚀 Cloudflare Workers Preview

Preview URL: https://87b33a00-dya-studio.cormoran707.workers.dev

Deployed from commit f919457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants