diff --git a/config/config.exs b/config/config.exs index e652b35ee..7f78b3ed2 100644 --- a/config/config.exs +++ b/config/config.exs @@ -145,6 +145,9 @@ config :tails, config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase +# TODO: remove after migration +config :algora, dev_routes: true + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{config_env()}.exs" diff --git a/config/prod.exs b/config/prod.exs index 89e31329f..6ae867048 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -10,8 +10,8 @@ config :algora, AlgoraWeb.Endpoint, cache_static_manifest: "priv/static/cache_ma # Configures Swoosh API Client config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Algora.Finch -# Disable Swoosh Local Memory Storage -config :swoosh, local: false +# TODO: Disable Swoosh Local Memory Storage +config :swoosh, local: true config :logger, format: {LogfmtEx, :format}, diff --git a/config/runtime.exs b/config/runtime.exs index e8e8ebf54..fee50762e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -129,9 +129,12 @@ if config_env() == :prod do # # Check `Plug.SSL` for all available options in `force_ssl`. - config :algora, Algora.Mailer, - adapter: Swoosh.Adapters.Sendgrid, - api_key: System.fetch_env!("SENDGRID_API_KEY") + # TODO: remove after migration + if false do + config :algora, Algora.Mailer, + adapter: Swoosh.Adapters.Sendgrid, + api_key: System.get_env("SENDGRID_API_KEY") + end config :swoosh, :api_client, Swoosh.ApiClient.Finch