mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-26 05:39:38 +00:00
Merge pull request #3810 from mikiher/enable-subdirectory
Enable subdirectory support by default
This commit is contained in:
commit
58ca26436d
3 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const pkg = require('./package.json')
|
||||
|
||||
const routerBasePath = process.env.ROUTER_BASE_PATH || ''
|
||||
const routerBasePath = process.env.ROUTER_BASE_PATH || '/audiobookshelf'
|
||||
const serverHostUrl = process.env.NODE_ENV === 'production' ? '' : 'http://localhost:3333'
|
||||
const serverPaths = ['api/', 'public/', 'hls/', 'auth/', 'feed/', 'status', 'login', 'logout', 'init']
|
||||
const proxy = Object.fromEntries(serverPaths.map((path) => [`${routerBasePath}/${path}`, { target: process.env.NODE_ENV !== 'production' ? serverHostUrl : '/' }]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue