From bed2729164d93351547a0955d54b9d88a6d82877 Mon Sep 17 00:00:00 2001 From: Greg Walker Date: Fri, 22 Sep 2023 16:31:32 -0500 Subject: [PATCH] let's see if we can output these --- _plugins/siteurl.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_plugins/siteurl.rb b/_plugins/siteurl.rb index 490bb785..ab34045c 100644 --- a/_plugins/siteurl.rb +++ b/_plugins/siteurl.rb @@ -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