diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-09 14:14:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-09 14:14:45 +0200 |
| commit | 4f1c48bf32ded0ce1277b6483bdac7ec489f055f (patch) | |
| tree | 1a2c7c09fb87731086ddcdb6570f710ad5cd56b2 /opendc-web/opendc-web-ui/public/index.html | |
| parent | fb84d53278fa59a7c7a95538747563a0aed692a2 (diff) | |
| parent | f79c0872ddfcbe02a7bcc498b4a9d5d202caccd2 (diff) | |
ui: Update OpenDC homepage
This pull request contains various updates to the opendc.org homepage,
in order to reflect the updates from OpenDC 2.0.
Diffstat (limited to 'opendc-web/opendc-web-ui/public/index.html')
| -rw-r--r-- | opendc-web/opendc-web-ui/public/index.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/opendc-web/opendc-web-ui/public/index.html b/opendc-web/opendc-web-ui/public/index.html index da734797..19b80e29 100644 --- a/opendc-web/opendc-web-ui/public/index.html +++ b/opendc-web/opendc-web-ui/public/index.html @@ -33,7 +33,7 @@ <meta property="og:locale" content="en_US"> <!-- Google meta tags --> - <meta name="google-signin-client_id" content="$OAUTH_CLIENT_ID"> + <meta name="google-signin-client_id" content="%REACT_APP_OAUTH_CLIENT_ID%"> <meta name="google-site-verification" content="YIR4LkQTv6WmOdWv8MkeiUKni-0Yu3WHylLp4VvUMig"/> <!-- CDN dependencies --> @@ -53,10 +53,11 @@ gtag('config', 'UA-84285092-3') </script> <script> - window.$$env = { - API_BASE_URL: "$API_BASE_URL", - OAUTH_CLIENT_ID: "$OAUTH_CLIENT_ID", - SENTRY_DSN: "$SENTRY_DSN", + /* Dynamic app variables */ + window.config_overrides = { + REACT_APP_API_BASE_URL: "$REACT_APP_API_BASE_URL", + REACT_APP_OAUTH_CLIENT_ID: "$REACT_APP_OAUTH_CLIENT_ID", + REACT_APP_SENTRY_DSN: "$REACT_APP_SENTRY_DSN", }; </script> </head> |
