diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-02-03 15:19:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-03 15:19:07 -0600 |
| commit | 9ee5accfcd65f98923724da3809cbcc8d5163061 (patch) | |
| tree | 1d329879f57f68259c0af92ecd8b73fca6d27f1b /src/web | |
| parent | 3162a3f7964e924372a7744f4ce02951894dfe38 (diff) | |
| download | slskd-9ee5accfcd65f98923724da3809cbcc8d5163061.tar.gz | |
Revert "Change default ports for HTTP, HTTPS, and Soulseek to 5030, 5031, and 50300, respectively"
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js index 9dc19b5c..1cec9668 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,6 +1,5 @@ const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || ''; -const devPort = window.port ?? 5030; -const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:${devPort}${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'; |
