mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
fix: 修复 main 文件及 "production" 的问题
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user