mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
Update build search script
This commit is contained in:
@ -62,6 +62,13 @@ async function getSortedPostsData() {
|
||||
// initialize environment variables
|
||||
config();
|
||||
|
||||
if (
|
||||
!process.env.NEXT_PUBLIC_ALGOLIA_APP_ID &&
|
||||
!process.env.ALGOLIA_SEARCH_ADMIN_KEY
|
||||
) {
|
||||
return console.log('API key not found!');
|
||||
}
|
||||
|
||||
try {
|
||||
const posts = await getSortedPostsData();
|
||||
|
||||
|
Reference in New Issue
Block a user