Skip to content
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

Automatically add robots.txt #15

Open
gkpty opened this issue Sep 24, 2020 · 0 comments
Open

Automatically add robots.txt #15

gkpty opened this issue Sep 24, 2020 · 0 comments
Labels
feature hacktoberfest An appropriate issue for Hacktoberfest

Comments

@gkpty
Copy link
Contributor

gkpty commented Sep 24, 2020

When deploying a dev/test bucket, add a robots.txt to tell google to crawl none.

User-agent: *
Disallow: /

When deploying a production bucket change robots.txt to:

User-agent: *
Allow: /

Only add a robots.txt file if one doesnt already exist.

Add a in the upload method that will allow/disallow user agents depending if its prod/test

@gkpty gkpty added hacktoberfest An appropriate issue for Hacktoberfest feature labels Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature hacktoberfest An appropriate issue for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant