mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Fix serverMiddleware as express app without path
This commit is contained in:
parent
df2af66355
commit
7cff6cd666
@ -186,7 +186,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