From a86c6c46483c74a7ffef8aae82283f980be4e1d6 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Sun, 14 Aug 2022 08:08:16 -0700 Subject: [PATCH] Use BASE_URL env variable for hosted url. --- examples/todos/app/Route/Login.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/todos/app/Route/Login.elm b/examples/todos/app/Route/Login.elm index 5e42754b..e73f2735 100644 --- a/examples/todos/app/Route/Login.elm +++ b/examples/todos/app/Route/Login.elm @@ -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)