refactor console verbosity and internal env handling

This commit is contained in:
dswbx
2025-03-04 11:18:14 +01:00
parent 36fba4588f
commit ab73b02138
13 changed files with 256 additions and 142 deletions

View File

@@ -49,11 +49,14 @@ export default {
// log routes
if (firstStart) {
console.log("[DB]", credentials);
firstStart = false;
/*console.log("\n[APP ROUTES]");
showRoutes(app.server);
console.log("-------\n");*/
console.log("[DB]", credentials);
if (import.meta.env.VITE_SHOW_ROUTES === "1") {
console.log("\n[APP ROUTES]");
showRoutes(app.server);
console.log("-------\n");
}
}
}