Skip to content

Commit

Permalink
refactor(console logs): remove useless console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raxuis committed Dec 9, 2024
1 parent 1567a2f commit 728362d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions middleware/auth.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ export default defineNuxtRouteMiddleware((to) => {
];
const excludedNames = ['recipe-slug'];

console.log('Navigating to:', to.path);
console.log('Route meta:', to.meta);

if (excludedPaths.includes(to.path) || excludedNames.includes(to.name as string)) {
if (status.value === 'authenticated' && to.meta?.auth?.unauthenticatedOnly) {
return navigateTo(to.meta.auth.navigateAuthenticatedTo || '/profile');
Expand Down

0 comments on commit 728362d

Please sign in to comment.