Skip to content

Commit

Permalink
hotfix: maintain compatibility with old env var
Browse files Browse the repository at this point in the history
can revert this when done
  • Loading branch information
thecristen committed Apr 25, 2024
1 parent d937faf commit 03fcaed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]

Expand Down

0 comments on commit 03fcaed

Please sign in to comment.