Skip to content

Commit

Permalink
Merge pull request #66 from nksaraf/log-fixes
Browse files Browse the repository at this point in the history
chore: remove logging of fs routes
  • Loading branch information
nksaraf authored Dec 28, 2023
2 parents ab5ea2c + b654e60 commit 408a27a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-files-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

chore: remove logging of fs routes
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 408a27a

Please sign in to comment.