add more strapi shit
All checks were successful
Deployment / Deploy website (push) Successful in 2m57s
Deployment / Deploy strapi (push) Successful in 2m54s

This commit is contained in:
Benjamin Palko 2025-05-12 18:12:24 -04:00
parent 18bde0daca
commit 6fa049504b
24 changed files with 595 additions and 62 deletions

View file

@ -1,4 +1,5 @@
import { env } from '$env/dynamic/private';
import { logger } from '$lib/server/logger';
import { Strapi } from '$lib/server/strapi';
import type { Handle, HandleServerError } from '@sveltejs/kit';
import { randomUUID } from 'crypto';
@ -6,7 +7,7 @@ import { randomUUID } from 'crypto';
export const handleError: HandleServerError = async ({ error, event, message, status }) => {
const errorId = randomUUID();
console.error(error, { errorId, event, message, status });
logger.error({ error, errorId, event, message, status }, 'Blyat');
return {
message: 'An Internal Error Occurred',