mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 12:52:27 +03:00
Use BASE_URL env variable for hosted url.
This commit is contained in:
parent
74e05446d7
commit
a86c6c4648
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user