Stop using Finch as Swoosh http client

This commit is contained in:
Andrew Dryga
2024-03-18 08:56:05 -06:00
parent 7e3271c205
commit 62df3fb89c
2 changed files with 4 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ defmodule Web.MixProject do
{:observer_cli, "~> 1.7"},
# Mailer deps
{:hackney, "~> 1.20"},
{:phoenix_swoosh, "~> 1.0"},
{:gen_smtp, "~> 1.0"},

View File

@@ -201,7 +201,9 @@ config :logger, :console,
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
config :swoosh, :api_client, Swoosh.ApiClient.Finch
# TODO: This is buggy, the return value is different
# from the one you would get with Hackney:
# config :swoosh, :api_client, Swoosh.ApiClient.Finch
config :web, Web.Mailer,
adapter: Domain.Mailer.NoopAdapter,