mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-06 11:59:40 +00:00
Update for nextjs client, pass all remaining requests through to nextjs
This commit is contained in:
parent
e040396b20
commit
03da194953
1 changed files with 1 additions and 2 deletions
|
|
@ -407,8 +407,7 @@ class Server {
|
||||||
const nextApp = next({ dev: Logger.isDev, dir: ReactClientPath })
|
const nextApp = next({ dev: Logger.isDev, dir: ReactClientPath })
|
||||||
const handle = nextApp.getRequestHandler()
|
const handle = nextApp.getRequestHandler()
|
||||||
await nextApp.prepare()
|
await nextApp.prepare()
|
||||||
router.get('*', (req, res) => handle(req, res))
|
router.all('*', (req, res) => handle(req, res))
|
||||||
router.post('/internal-api/*', (req, res) => handle(req, res))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const unixSocketPrefix = 'unix/'
|
const unixSocketPrefix = 'unix/'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue