diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-30 20:45:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 20:45:36 -0600 |
| commit | 3162a3f7964e924372a7744f4ce02951894dfe38 (patch) | |
| tree | c9db3100a1920009a20ceb59c310cc6f8296dbe5 /src/web | |
| parent | 4278d95a8923178563f54fbcbb4586638921e665 (diff) | |
| parent | 57b2584efac2548011eb59fbda61f32d5d161ee0 (diff) | |
| download | slskd-3162a3f7964e924372a7744f4ce02951894dfe38.tar.gz | |
Merge pull request #862 from slskd/port
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, 2 insertions, 1 deletions
diff --git a/src/web/src/config.js b/src/web/src/config.js index 1cec9668..9dc19b5c 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,5 +1,6 @@ const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || ''; -const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000${urlBase}`; +const devPort = window.port ?? 5030; +const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:${devPort}${urlBase}`; const apiBaseUrl = `${rootUrl}/api/v0`; const hubBaseUrl = `${rootUrl}/hub`; const tokenKey = 'slskd-token'; |
