mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
host detection fixed in prod mode
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
let torrserverHost = process.env.REACT_APP_SERVER_HOST || ''
|
||||
const { protocol, hostname, port } = window.location
|
||||
|
||||
let torrserverHost = process.env.REACT_APP_SERVER_HOST || `${protocol}//${hostname}${port ? `:${port}` : ''}`
|
||||
|
||||
export const torrentsHost = () => `${torrserverHost}/torrents`
|
||||
export const viewedHost = () => `${torrserverHost}/viewed`
|
||||
|
||||
Reference in New Issue
Block a user