feat(algolia): replace error throw with console.error for missing config

Change error handling from throwing an exception to logging an error when
Algolia configuration is missing. This provides better error reporting
without breaking the application flow.
This commit is contained in:
anime
2025-07-08 15:37:59 +08:00
parent 55c39cbab8
commit 93df743559

View File

@@ -13,7 +13,7 @@ const initAlgolia = () => {
!BLOG.ALGOLIA_ADMIN_APP_KEY ||
!BLOG.ALGOLIA_INDEX
) {
throw new Error('Algolia configuration is missing')
console.error('Algolia configuration is missing')
}
algoliaClient = algoliasearch(
BLOG.ALGOLIA_APP_ID,