diff --git a/config/runtime.exs b/config/runtime.exs index 4c541dd0..a824ca71 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -7,12 +7,12 @@ import Config # any compile-time configuration in here, as it won't be applied. # The block below contains prod specific runtime configuration. -# mbta_v3_api configuration in disguise -config :mobile_app_backend, - base_url: System.get_env("API_URL"), - api_key: System.get_env("API_KEY") - if config_env() != :test do + # mbta_v3_api configuration in disguise + config :mobile_app_backend, + base_url: System.get_env("API_URL"), + api_key: System.get_env("API_KEY") + config :mobile_app_backend, MobileAppBackend.Search.Algolia, app_id: System.get_env("ALGOLIA_APP_ID"), search_key: System.get_env("ALGOLIA_SEARCH_KEY"), diff --git a/config/test.exs b/config/test.exs index 9118e02c..87381237 100644 --- a/config/test.exs +++ b/config/test.exs @@ -13,6 +13,9 @@ config :logger, level: :warning # Initialize plugs at runtime for faster test compilation config :phoenix, :plug_init_mode, :runtime +config :mobile_app_backend, + base_url: "https://api-dev.mbtace.com/" + config :mobile_app_backend, MobileAppBackend.Search.Algolia, app_id: "fake_app", search_key: "fake_key",