From 948c31779b1358be976893d517cbceccb5cc343c Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 25 Feb 2026 21:50:31 +0800 Subject: [PATCH] fix(plugin-search): fix temporary file IO race condition (#861) --- plugins/plugin-search/src/node/searchPlugin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/plugin-search/src/node/searchPlugin.ts b/plugins/plugin-search/src/node/searchPlugin.ts index 3283208f..d37b258f 100644 --- a/plugins/plugin-search/src/node/searchPlugin.ts +++ b/plugins/plugin-search/src/node/searchPlugin.ts @@ -37,9 +37,8 @@ export function searchPlugin({ await prepareSearchIndex({ app, isSearchable, searchOptions }) } else { - const placeholder = prepareSearchIndexPlaceholder(app) - await placeholder - placeholder.then(() => prepareSearchIndex({ app, isSearchable, searchOptions })) + await prepareSearchIndexPlaceholder(app) + prepareSearchIndex({ app, isSearchable, searchOptions }) } },