From 03fcaed91e5efeed77634cd175a174f73c03182c Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Thu, 25 Apr 2024 17:20:20 -0400 Subject: [PATCH] hotfix: maintain compatibility with old env var can revert this when done --- config/runtime.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 152ab80c21..7531f901fe 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -108,10 +108,10 @@ else end config :dotcom, :mbta_api, - base_url: System.get_env("MBTA_API_BASE_URL"), + base_url: System.get_env("MBTA_API_BASE_URL", System.get_env("V3_URL")), headers: [ {"MBTA-Version", "2019-07-01"}, - {"x-api-key", System.get_env("MBTA_API_KEY")}, + {"x-api-key", System.get_env("MBTA_API_KEY", System.get_env("V3_API_KEY"))}, {"x-enable-experimental-features", "true"} ]