Use HCB_API_BASE env var instead of credentials

This commit is contained in:
24c02 2025-12-18 14:50:38 -05:00
parent faa2c4644c
commit c6458c3bd7
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class HCB::OauthConnectionsController < ApplicationController
end
def hcb_api_base
Rails.application.credentials.dig(:hcb, :api_base) || "https://hcb.hackclub.com"
ENV.fetch("HCB_API_BASE", "https://hcb.hackclub.com")
end
def hcb_oauth_authorize_url

View file

@ -59,6 +59,6 @@ class HCB::OauthConnection < ApplicationRecord
private
def hcb_api_base
Rails.application.credentials.dig(:hcb, :api_base) || "https://hcb.hackclub.com"
ENV.fetch("HCB_API_BASE", "https://hcb.hackclub.com")
end
end