Skip to content

Commit

Permalink
Merge pull request #2319 from alphagov/fix-missing-env-var-in-deployment
Browse files Browse the repository at this point in the history
Provide fallback for GovukAdminTemplate.environment_label
  • Loading branch information
floehopper committed Aug 22, 2023
2 parents dc6e39f + bad7b54 commit 746b473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/govuk_admin_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
c.disable_google_analytics = false
end

GovukAdminTemplate.environment_label = GovukEnvironment.name.titleize
GovukAdminTemplate.environment_label = (GovukEnvironment.name || "development").titleize
GovukAdminTemplate.environment_style = GovukEnvironment.production? ? "production" : "preview"

0 comments on commit 746b473

Please sign in to comment.