get em outta here
All checks were successful
Deployment / Deploy website (push) Successful in 4m1s
Deployment / Deploy strapi (push) Successful in 3m2s

This commit is contained in:
Benjamin Palko 2025-06-19 17:48:35 -04:00
parent 2aeb142ded
commit 84d20a70b9

View file

@ -1,21 +0,0 @@
import { logger } from '$lib/server/logger';
import { error } from '@sveltejs/kit';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals }) => {
const { strapi } = locals;
try {
const result = await strapi.SiteBackground();
return {
background: {
url: result.data.Background.url
}
};
} catch (err) {
logger.error('Uh-oh!', err);
if (err instanceof Error) {
error(500, err);
}
}
};