mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-16 06:11:38 +00:00
Only start ClientRouter for production
This commit is contained in:
parent
634167aea6
commit
57994ffb5b
3 changed files with 9 additions and 6 deletions
|
|
@ -139,7 +139,9 @@ class Server {
|
|||
async start() {
|
||||
Logger.info('=== Starting Server ===')
|
||||
await this.init()
|
||||
this.clientRouter.start()
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
this.clientRouter.start()
|
||||
}
|
||||
|
||||
const app = express()
|
||||
const router = express.Router()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue