mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 22:01:37 +00:00
Update bookshelf texture image path, update glob
This commit is contained in:
parent
97e8d4f5c0
commit
29d1f75f5c
4 changed files with 13 additions and 25 deletions
|
|
@ -150,7 +150,7 @@ class Server {
|
|||
|
||||
router.use(this.auth.cors)
|
||||
router.use(fileUpload())
|
||||
router.use(express.urlencoded({ extended: true, limit: "5mb" }));
|
||||
router.use(express.urlencoded({ extended: true, limit: "5mb" }))
|
||||
router.use(express.json({ limit: "5mb" }))
|
||||
|
||||
// Static path to generated nuxt
|
||||
|
|
@ -328,7 +328,7 @@ class Server {
|
|||
}
|
||||
|
||||
// Apply the current RouterBasePath to all `<base>` tags in the client html files
|
||||
async applyClientBasePath () {
|
||||
async applyClientBasePath() {
|
||||
const basePath = `/${global.RouterBasePath}/`
|
||||
.replace('///', '') // convert base path `"/""` to `""`
|
||||
.replace('//', '/') // Ensure there are single `/` at the front and end
|
||||
|
|
@ -341,7 +341,7 @@ class Server {
|
|||
const currentBasePath = indexHtml.match(/routerBasePath:"([^"]*)"/)[1]
|
||||
if (currentBasePath === basePath) {
|
||||
Logger.info(`[Server] Client base path already set to ${basePath}`)
|
||||
return;
|
||||
return
|
||||
}
|
||||
|
||||
// Matches e.g `href="/_nuxt/..."` or `src='/...'` or `"url":"http://localhost:3333/...`
|
||||
|
|
@ -380,7 +380,7 @@ class Server {
|
|||
await fs.writeFile(jsPath, js)
|
||||
}
|
||||
|
||||
Logger.info(`[Server] Client base path set to "${basePath}"`);
|
||||
Logger.info(`[Server] Client base path set to "${basePath}"`)
|
||||
}
|
||||
|
||||
// First time login rate limit is hit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue