Skip to content

Commit

Permalink
Select robots.txt contents based on env var
Browse files Browse the repository at this point in the history
Signed-off-by: David A. Wheeler <[email protected]>
  • Loading branch information
david-a-wheeler committed Jul 31, 2023
1 parent 58a5ad0 commit 603462f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/static_pages/robots.text.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% cache true do -%>
<% if ENV['PUBLIC_HOSTNAME'] == 'bestpractices.coreinfrastructure.org' -%>
<% if not in_development? -%>
# This is the real production system for the CII Best Practices badge.
<%
locale_prefixes = I18n.available_locales.map { |loc| "/#{loc}" }
Expand Down

0 comments on commit 603462f

Please sign in to comment.