diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-05-08 13:34:57 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-05-08 13:34:57 -0500 |
| commit | 82c3b1da48500064528ddad3802b6ff43852030c (patch) | |
| tree | 381933b7e4ddcd9abf5d7fe124f9779c4b111b5a /src/web | |
| parent | ab88c3d6d50eede75fce403089ce51cf843272cc (diff) | |
| download | slskd-82c3b1da48500064528ddad3802b6ff43852030c.tar.gz | |
tweak urlBase yet again
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/config.js | 2 |
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'; |
