mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
refactor(builder): await build.createRoutes to allow async functions inside it (#6352)
This commit is contained in:
parent
c010addb34
commit
519ced4c4a
@ -369,7 +369,7 @@ export default class Builder {
|
|||||||
trailingSlash
|
trailingSlash
|
||||||
})
|
})
|
||||||
} else { // If user defined a custom method to create routes
|
} else { // If user defined a custom method to create routes
|
||||||
templateVars.router.routes = this.options.build.createRoutes(
|
templateVars.router.routes = await this.options.build.createRoutes(
|
||||||
this.options.srcDir
|
this.options.srcDir
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user