feat: significantly reduce build times

This commit is contained in:
Cory Dransfeldt 2024-07-31 15:42:48 -07:00
parent 228bd1b681
commit 1c75acb37e
No known key found for this signature in database
21 changed files with 671 additions and 558 deletions

View file

@ -12,13 +12,18 @@ const fetchBlogroll = async () => {
.order('name', { ascending: true })
if (error) {
console.error('Error fetching authors with for the blogroll:', error)
console.error('Error fetching authors for the blogroll:', error)
return []
}
return data.sort((a, b) => a['name'].toLowerCase().localeCompare(b['name'].toLowerCase()))
return data.sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()))
}
export default async function () {
return await fetchBlogroll()
try {
return await fetchBlogroll()
} catch (error) {
console.error('Error fetching and processing the blogroll:', error)
return []
}
}