From 6de4763df03c5bcbfceb60df25e6e8b36f2e32ad Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 4 Feb 2023 12:19:46 -0600 Subject: Revert "Merge pull request #874 from slskd/revert-862-port" This reverts commit 02364ac34c7ebabbb348a0806a36f6bc2153a609, reversing changes made to 3162a3f7964e924372a7744f4ce02951894dfe38. --- src/web/src/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/web') 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'; -- cgit v1.2.3