Skip to content

Commit

Permalink
chore: remove logging of fs routes
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Dec 28, 2023
1 parent ab5ea2c commit 60e996d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/vinxi/lib/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ export async function createDevServer(

await app.hooks.callHook("app:dev:server:created", { app, devApp });

for (const router of app.config.routers) {
if (router.internals && router.internals.routes) {
const routes = await router.internals.routes.getRoutes();
for (const route of routes) {
withLogger({ router }, () => console.log(route.path));
}
}
}
// for (const router of app.config.routers) {
// if (router.internals && router.internals.routes) {
// const routes = await router.internals.routes.getRoutes();
// for (const route of routes) {
// withLogger({ router }, () => console.log(route.path));
// }
// }
// }

// We do this so that we can access the app in plugins using globalThis.app just like we do in production.
// @ts-ignore
Expand Down

0 comments on commit 60e996d

Please sign in to comment.