mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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
|
// router.extendRoutes method
|
||||||
if (typeof this.options.router.extendRoutes === 'function') {
|
if (typeof this.options.router.extendRoutes === 'function') {
|
||||||
// let the user extend the routes
|
// let the user extend the routes
|
||||||
const extendedRoutes = this.options.router.extendRoutes(
|
const extendedRoutes = await this.options.router.extendRoutes(
|
||||||
templateVars.router.routes,
|
templateVars.router.routes,
|
||||||
r
|
r
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user