Skip to content

Commit 519ced4

Browse files
xxRockOnxxpi0
authored andcommitted
refactor(builder): await build.createRoutes to allow async functions inside it (nuxt#6352)
1 parent c010add commit 519ced4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/builder/src/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export default class Builder {
369369
trailingSlash
370370
})
371371
} else { // If user defined a custom method to create routes
372-
templateVars.router.routes = this.options.build.createRoutes(
372+
templateVars.router.routes = await this.options.build.createRoutes(
373373
this.options.srcDir
374374
)
375375
}

0 commit comments

Comments
 (0)