-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isom-1719 non-prod sites can be indexed by search engine #987
isom-1719 non-prod sites can be indexed by search engine #987
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 257 Passed, 36 Skipped, 47s Total Time |
export const shouldBlockIndexing = ( | ||
environment: IsomerPageSchemaType["site"]["environment"], | ||
): boolean => { | ||
return environment === "staging" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shuold we make this more restrictive? we might hvae environments that are non-production which shouldn't be indexed also like vapt
or uat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea sgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in e810697, thanks!
…ngohjw/isom-1719-test-sites-can-be-indexed-by-search-engine
Problem
Closes https://linear.app/ogp/issue/ISOM-1719/test-sites-can-be-indexed-by-search-engine
while staging sites have
disallow
inrobots.txt
, according to googleSolution
Breaking Changes
Improvements:
shouldBlockIndexing
based on site's environment/page.tsx
based onshouldBlockIndexing
Tests
trigger a new codebuild, and inspect the HTML. It should/should not have
<meta name="robots" content="noindex">
based on the table below