mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
feat(builder): support async extendRoutes
(#7754)
Co-authored-by: Martin Novák <martin.novak@cleverlance.com>
This commit is contained in:
parent
7aa46f57f7
commit
b469f931f8
@ -414,7 +414,7 @@ export default class Builder {
|
||||
// router.extendRoutes method
|
||||
if (typeof this.options.router.extendRoutes === 'function') {
|
||||
// let the user extend the routes
|
||||
const extendedRoutes = this.options.router.extendRoutes(
|
||||
const extendedRoutes = await this.options.router.extendRoutes(
|
||||
templateVars.router.routes,
|
||||
r
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user