diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-04 15:06:51 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-04 15:06:51 +0200 |
| commit | 56be711ee89a86c7ba7c01a361163823b1056e16 (patch) | |
| tree | dddad6d69e02e93d58b6a19474b61a5a7c4fc0b8 /main.js | |
| parent | 0064b61e4b93285d006786ca0d964ecaaf677c29 (diff) | |
Prepare for release
Diffstat (limited to 'main.js')
| -rw-r--r-- | main.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -97,10 +97,15 @@ window.onload = async() => { const runElmApp = async() => { try { const user = await auth0.getUser(); + + const isProd = location.host.endsWith("jan.systems"); const flags = { - email: user.email, - name: user.name, - pictureUrl: user.picture, + userData: { + email: user.email, + name: user.name, + pictureUrl: user.picture, + }, + apiURL: isProd ? "https://bookapi.jan.systems" : "http://localhost:5678", }; const app = Elm.Main.init({ |
