aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-05-08 13:34:57 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-05-08 13:34:57 -0500
commit82c3b1da48500064528ddad3802b6ff43852030c (patch)
tree381933b7e4ddcd9abf5d7fe124f9779c4b111b5a /src
parentab88c3d6d50eede75fce403089ce51cf843272cc (diff)
downloadslskd-82c3b1da48500064528ddad3802b6ff43852030c.tar.gz
tweak urlBase yet again
Diffstat (limited to 'src')
-rw-r--r--src/web/src/config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js
index 6f899564..8f0ac901 100644
--- a/src/web/src/config.js
+++ b/src/web/src/config.js
@@ -1,5 +1,5 @@
const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || '';
-const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000/${urlBase}`;
+const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000${urlBase}`;
const apiBaseUrl = `${rootUrl}/api/v0`;
const hubBaseUrl = `${rootUrl}/hub`;
const tokenKey = 'slskd-token';