ONEARMY / community-platform

A platform to build useful communities that aim to tackle global problems
https://platform.onearmy.earth
MIT License
1.1k stars 370 forks source link

[bug] Dev sites indexed by search #3777

Closed benfurber closed 1 month ago

benfurber commented 1 month ago

Describe the bug A user has reported that our dev sites are findable on google. I wasn't able to quickly confirm this but I was able to quickly check that https://dev.community.projectkamp.com/ doesn't have a meta tag to request that robots don't index. e.g. <meta name="robots" content="noindex, nofollow">

Expected behaviour During build, probably in postBuild.ts, a meta tag is added when the build isn't a prod release. The env variable REACT_APP_BRANCH can probably be used.

The builds that shouldn't be indexed:

The builds that should be indexed:

pizzaisdavid commented 1 month ago

If you search google with "site:dev.community.projectkamp.com" it restricts to that site only.

https://www.google.com/search?q=site%3Adev.community.projectkamp.com&sca_esv=cc40cfa443a9a9e9&sxsrf=ADLYWIKI6UCxQLu3dA9-5R9JK-QE4jvpww%3A1721731762791&ei=soqfZv_3L66Wxc8P6q_CwQU&ved=0ahUKEwj_mPrQ_ryHAxUuS_EDHeqXMFgQ4dUDCA8&uact=5&oq=site%3Adev.community.projectkamp.com&gs_lp=Egxnd3Mtd2l6LXNlcnAiInNpdGU6ZGV2LmNvbW11bml0eS5wcm9qZWN0a2FtcC5jb21I-BNQtwlY6w5wAXgAkAEAmAFtoAHXAqoBAzMuMbgBA8gBAPgBAZgCAKACAJgDAIgGAZIHAKAH1wI&sclient=gws-wiz-serp

Currently, only the questions module thingy shows-up

pizzaisdavid commented 1 month ago

There is a good amount of results for site:dev.onearmy.world, though

https://www.google.com/search?q=site%3Adev.onearmy.world&sca_esv=cc40cfa443a9a9e9&biw=1536&bih=739&sxsrf=ADLYWIJrXqTfED8W8lov5ABTP6JwMtHv-g%3A1721731834895&ei=-oqfZpqUNqyUxc8P05ej0QE&ved=0ahUKEwia-arz_ryHAxUsSvEDHdPLKBoQ4dUDCA8&uact=5&oq=site%3Adev.onearmy.world&gs_lp=Egxnd3Mtd2l6LXNlcnAiFnNpdGU6ZGV2Lm9uZWFybXkud29ybGRIwIgFUABYAHACeACQAQCYAQCgAQCqAQC4AQPIAQD4AQKYAgCgAgCYAwCIBgGSBwCgBwA&sclient=gws-wiz-serp

onearmy-bot commented 1 month ago

:tada: This issue has been resolved in version 1.205.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: