-
-
Save Convincible/e06659925b45cabcd1ceabbb36dc8de8 to your computer and use it in GitHub Desktop.
Robots.txt to exclude dev/staging/non-production environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: null | |
--- | |
User-agent: * | |
Disallow: {% if jekyll.environment != 'production' %}/{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stripped back to its simplest form.
Ensure production environments build with:
JEKYLL_ENV=production jekyll build