diff options
Diffstat (limited to 'web/index.html')
| -rw-r--r-- | web/index.html | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/web/index.html b/web/index.html index 115cd54..2533d25 100644 --- a/web/index.html +++ b/web/index.html @@ -11,15 +11,7 @@ <link rel="stylesheet" href="/src/styles.css"> </head> <body> - <script> - // Local dev only: the static file server (4173) and typerpunk-server - // (8787) are different origins here. A production deployment behind - // a reverse proxy that routes /api/* to the backend needs neither -- - // same-origin is the default (see web/src/api.js). - if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') { - window.TYPERPUNK_API_URL = `${location.protocol}//${location.hostname}:8787`; - } - </script> + <script src="/src/devApiOrigin.js"></script> <div id="root"></div> <script type="module" src="/src/main.js"></script> </body> |