lib/workos.rb in workos-0.1.0 vs lib/workos.rb in workos-0.1.1
- old
+ new
@@ -9,10 +9,10 @@
# your API key automatically from the ENV var `WORKOS_KEY`.
# Alternatively, you can set the key yourself with
# `WorkOS.key = [your api key]` somewhere in the load path of
# your application, such as an initializer.
module WorkOS
- API_HOSTNAME = 'api.workos.com'
+ API_HOSTNAME = ENV['WORKOS_API_HOSTNAME'] || 'api.workos.com'
def self.key=(value)
Base.key = value
end