Fix document action and content (#5308)

* fix: action

* remove cache

* update action

* doc (#102)

* doc (#101)

* do

* add redirect

* doc

* fix: action

* action

* doc

* fix: action

* fix: action

* action
This commit is contained in:
Archer
2025-07-24 14:23:04 +08:00
committed by GitHub
parent 68136febec
commit c390eb186c
8 changed files with 38 additions and 51 deletions

View File

@@ -9,7 +9,13 @@ async function main() {
/** @type {import('fumadocs-core/search/algolia').DocumentRecord[]} **/
const records = JSON.parse(content.toString());
if (!process.env.NEXT_PUBLIC_SEARCH_APPID || !process.env.SEARCH_APPWRITEKEY) {
console.log({
NEXT_PUBLIC_SEARCH_APPID: process.env.NEXT_PUBLIC_SEARCH_APPID,
SEARCH_APPWRITEKEY: process.env.SEARCH_APPWRITEKEY,
SEARCH_APPWRITEKEY: process.env.SEARCH_APPWRITEKEY
})
if (!process.env.NEXT_PUBLIC_SEARCH_APPID || !process.env.SEARCH_APPWRITEKEY || !process.env.SEARCH_APPWRITEKEY) {
console.log('NEXT_PUBLIC_SEARCH_APPID or SEARCH_APPWRITEKEY is not set');
return;
}