Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed Sep 30, 2024
1 parent 7afc6a3 commit af13041
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions client/src/components/layout/ContainerLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,10 @@
}

function getHomePageRoute(){
console.log(import.meta.env.VITE_SUB_PATH)
if(import.meta.env.VITE_SUB_PATH == null){
console.log("it got here 1")
return constants.RUNNING_EXAMS_ROUTE;
}

console.log("it got here 2")


return import.meta.env.VITE_SUB_PATH + constants.RUNNING_EXAMS_ROUTE;
}

Expand Down
3 changes: 0 additions & 3 deletions client/src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ export const useAuthStore = defineStore("auth", () => {
let route: string = useAuthStore().redirectRoute;
let subPath: string | null = import.meta.env.VITE_SUB_PATH;

console.log("route: " + route);
console.log("subPath: " + subPath)

if(subPath != null && route.includes(subPath)){
route = route.replace(subPath, "");
}
Expand Down
7 changes: 0 additions & 7 deletions client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,10 @@ export default ({ mode }) => {
});

function getSubPath(){
console.log("it got here 1::::::::")
console.log(process.env.VITE_SUB_PATH)

if(process.env.VITE_SUB_PATH == null || process.env.VITE_SUB_PATH == ""){
console.log("it got here 2::::::::")
return "/";
}

console.log("it got here 3::::::::")


return process.env.VITE_SUB_PATH;
}
}
Expand Down

0 comments on commit af13041

Please sign in to comment.