add dev route mailbox

This commit is contained in:
Alex
2022-07-29 11:52:18 +02:00
parent 05d01fd89a
commit 77c6a9cd65

View File

@@ -82,7 +82,7 @@ defmodule ClaperWeb.Router do
#
# Note that preview only shows emails that were sent by the same
# node running the Phoenix server.
if Mix.env() == :dev do
if Mix.env() == :dev || System.get_env("MAIL_TRANSPORT", "local") == "local" do
scope "/dev" do
pipe_through(:browser)