-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port 8800 getting hardcoded #13
Comments
I did find this in the vite documentation -- so it seems like maybe that
|
Thanks for you research! Hopefully they can fix/revert this in the next update as I also use it behind a reverse proxy... |
It looks like maybe this has been fixed in the |
@jspiers you could be right, but it looks like |
Ah ok. I never actually looked into the differences between |
I brought down the project and built it and the resulting minified javascript is almost identical to the one checked in, except that a few identifiers are different (just that minification decided on names differently for some reason, I think) and that the port is hard-coded. @phcreery - seems like something was different for the build that produced the file in |
Related to spotDL/spotify-downloader#2035
It seems that port 8800 is ending up being hard-coded in the javascript somehow. You can see this if you search for "8800" in https://github.com/spotDL/web-ui/blob/master/dist/assets/index-CGxZV3ZT.js
This results in the UI not being able to contact the API if they are served on a port beisdes 8800 (e.g., docker setups or behind a reverse proxy like in my case).
It seems like that chunk of code matches with this config, but I'm not sure how that's turning into 8800 -- maybe vite is doing some smarts to transform this?: https://github.com/spotDL/web-ui/blob/master/src/config.js
I tried to look a little at why vite might do this, but didn't find much.
The text was updated successfully, but these errors were encountered: