Add sentry integration with Vue frontend

This commit is contained in:
Eli Ribble 2026-04-21 23:35:59 +00:00
parent baaa3bff5b
commit 2b30411c1b
No known key found for this signature in database
5 changed files with 104 additions and 11 deletions

View file

@ -2,4 +2,16 @@
<router-view />
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import { onMounted } from "vue";
import { SSEManager, type SSEMessage } from "@/SSEManager";
onMounted(() => {
SSEManager.connect("/api/events");
SSEManager.subscribe((msg: SSEMessage) => {
if (msg.type != "heartbeat") {
console.log("SSE", msg);
}
});
});
</script>