mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Fix serverMiddleware as express app without path
This commit is contained in:
parent
83c25084f1
commit
7afa5e4c13
@ -182,7 +182,7 @@ export default class Renderer extends Tapable {
|
||||
}
|
||||
|
||||
const handler = m.handler || m
|
||||
const path = (((m.prefix !== false) ? this.options.router.base : '') + (m.path ? m.path : '')).replace(/\/\//g, '/')
|
||||
const path = (((m.prefix !== false) ? this.options.router.base : '') + (typeof m.path === 'string' ? m.path : '')).replace(/\/\//g, '/')
|
||||
|
||||
// Inject $src and $m to final handler
|
||||
if (src) handler.$src = src
|
||||
|
Loading…
Reference in New Issue
Block a user