mitchray / ample

A simple web browser client for Ampache
https://ample-player.vercel.app/
GNU Affero General Public License v3.0
63 stars 13 forks source link

Added the ability to build a remote version #43

Closed B4T3S closed 1 year ago

B4T3S commented 1 year ago

This version doesn't require being in the same directory as Ampache. To use a remote server you can just set the URL in the .env.remote file and then run npm run build:remote

B4T3S commented 1 year ago

Turns out there is a slight bug where it puts the full URL at the end of the url itself so like https://your-server.com/https://your-server.com/smartlists which still works, but obviously looks bad. I'll see if I can fix this

B4T3S commented 1 year ago

Alright, sorry for the holdup @mitchray but I got the issue fixed.

The only thing that wouldn't work like this (because I'm not entirely sure how to implement it) would be having a path like https://remoteserver.url/myAmpleInstall/somePage because I just set the ServerPath to "/" for remote servers, this would result in all the buttons redirecting to https://remoteserver.url/somePage

mitchray commented 1 year ago

V2 has a server URL input now which supersedes this 👍