mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user