fix: 修复 main 文件及 "production" 的问题

This commit is contained in:
claude-code-best
2026-04-07 10:53:45 +08:00
parent dab0783941
commit a7d9a220bf
8 changed files with 6747 additions and 6356 deletions

View File

@@ -623,7 +623,7 @@ export function useTypeahead({
// subsequent tests in the shard. The subscriber still registers so
// fileSuggestions tests that trigger a refresh directly work correctly.
useEffect(() => {
if ("production" !== 'test') {
if (process.env.NODE_ENV !== 'test') {
startBackgroundCacheRefresh()
}
return onIndexBuildComplete(() => {