fix: env and __CONTENT_INDEX
This commit is contained in:
@@ -16,9 +16,9 @@ function ensureIndexLoaded(): Promise<void> {
|
||||
if (indexLoadPromise) return indexLoadPromise;
|
||||
|
||||
indexLoadPromise = (async () => {
|
||||
// 尝试 CLI 环境:从 /__FILE_INDEX.json 加载
|
||||
// 尝试 CLI 环境:从 /__CONTENT_INDEX.json 加载
|
||||
try {
|
||||
const response = await fetch("/__FILE_INDEX.json");
|
||||
const response = await fetch("/__CONTENT_INDEX.json");
|
||||
if (response.ok) {
|
||||
const index = await response.json();
|
||||
fileIndex = { ...fileIndex, ...index };
|
||||
|
||||
Reference in New Issue
Block a user