mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-26 02:36:48 +08:00
Temporarily disable the fetching of prompts.json by commenting out the fetch block
This commit is contained in:
@@ -151,6 +151,8 @@ export const usePromptStore = createPersistStore(
|
||||
|
||||
type PromptList = Array<[string, string]>;
|
||||
|
||||
// Temporarily disable the fetching of prompts.json by commenting out the fetch block
|
||||
/*
|
||||
fetch(PROMPT_URL)
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
@@ -179,6 +181,12 @@ export const usePromptStore = createPersistStore(
|
||||
res.en.length + res.cn.length + res.tw.length;
|
||||
SearchService.init(allPromptsForSearch, userPrompts);
|
||||
});
|
||||
*/
|
||||
|
||||
// You may want to add some temporary code to initialize your prompts if needed
|
||||
// For example, you can initialize SearchService with empty arrays or default data
|
||||
SearchService.init([], []);
|
||||
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user