Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #672 from 18F/greg/testing
Browse files Browse the repository at this point in the history
Print cloud.gov environment variables to ensure they're what they're supposed to be
  • Loading branch information
mgwalker authored Sep 22, 2023
2 parents 59ac2c4 + bed2729 commit f930579
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _plugins/siteurl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
# it'll just cause a 404.
#
# We can avoid all that by just emptying the site.url value on preview builds.
puts "============== Pages environment check =============="
puts "BRANCH: . . #{ENV['BRANCH']}"
puts "OWNER: . . . #{ENV['OWNER']}"
puts "REPOSITORY: #{ENV['REPOSITORY']}"
puts "SITE_PREFIX: #{ENV['SITE_PREFIX']}"
puts "BASEURL: . . #{ENV['BASEURL']}"

branch = ENV['BRANCH']
if !(branch.nil? || branch == 'main')
site.config['url'] = nil
Expand Down

0 comments on commit f930579

Please sign in to comment.