mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
parent
ba0fae74a7
commit
0b31d93892
@ -44,9 +44,7 @@ export async function createApp (
|
|||||||
app.routes.push(...(await resolvePagesRoutes(builder, app)))
|
app.routes.push(...(await resolvePagesRoutes(builder, app)))
|
||||||
}
|
}
|
||||||
// TODO: Hook to extend routes
|
// TODO: Hook to extend routes
|
||||||
if (app.routes.length) {
|
app.templates.routes = serializeRoutes(app.routes)
|
||||||
app.templates.routes = serializeRoutes(app.routes)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback app.main
|
// Fallback app.main
|
||||||
if (!app.main && app.routes.length) {
|
if (!app.main && app.routes.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user