General fix the homepage and the sponsor block overflow on mobile

This commit is contained in:
2026-01-26 23:46:43 -05:00
parent bd4889b6f9
commit 6eff0e5e83
7 changed files with 45 additions and 37 deletions

View File

@@ -5,5 +5,10 @@ const thumbnailQuery = `*[_type == "homepage"]{
}[0]`;
export const load = async () => {
return { thumbnail: (await getFromCMS(thumbnailQuery)).thumbnail };
try {
return { thumbnail: (await getFromCMS(thumbnailQuery)).thumbnail };
} catch (err) {
console.error('Failed to fetch homepage thumbnail from CMS:', err);
return { thumbnail: null };
}
};