fix(logs): don't spam the logs with 404 and add better logging for server errors

This commit is contained in:
William Oldham
2026-08-29 19:14:48 +01:00
parent 20ca7d55ff
commit b1866617c6
2 changed files with 43 additions and 3 deletions

View File

@@ -3,9 +3,11 @@ import { watchImmediate } from '@vueuse/core';
import DefaultLayout from './layouts/default.vue';
const { error } = defineProps<{ error: any }>();
watchImmediate([error], () => {
console.error(error);
});
if (import.meta.client) {
watchImmediate([() => error], () => {
console.error(error);
});
}
</script>
<template>