Fix Mix.env use in prod app & MR threads

This commit is contained in:
prichier
2020-10-27 16:40:14 +01:00
parent 1acff2dd8a
commit 751b72a434
7 changed files with 22 additions and 24 deletions

View File

@@ -169,7 +169,7 @@ defmodule Mobilizon.Web.Router do
get("/:sig/:url/:filename", MediaProxyController, :remote)
end
if Mix.env() in [:dev, :e2e] do
if Application.fetch_env!(:mobilizon, :env) in [:dev, :e2e] do
# If using Phoenix
forward("/sent_emails", Bamboo.SentEmailViewerPlug)
end