Use BASE_URL env variable for hosted url.

This commit is contained in:
Dillon Kearns 2022-08-14 08:08:16 -07:00
parent 74e05446d7
commit a86c6c4648

View File

@ -108,7 +108,7 @@ form =
(\email ->
DataSource.map2 EnvVariables
(DataSource.Env.expect "TODOS_SEND_GRID_KEY")
(DataSource.Env.get "URL"
(DataSource.Env.get "BASE_URL"
|> DataSource.map (Maybe.withDefault "http://localhost:1234")
)
|> DataSource.andThen (sendEmailDataSource email)