update hardcoded paths
This commit is contained in:
parent
0c8128cd62
commit
72597d6f68
9 changed files with 23 additions and 18 deletions
|
|
@ -18,7 +18,7 @@ export function useChatVisibility({
|
|||
initialVisibilityType: VisibilityType;
|
||||
}) {
|
||||
const { mutate, cache } = useSWRConfig();
|
||||
const history: ChatHistory = cache.get("/api/history")?.data;
|
||||
const history: ChatHistory = cache.get(`${process.env.NEXT_PUBLIC_BASE_PATH ?? ""}/api/history`)?.data;
|
||||
|
||||
const { data: localVisibility, mutate: setLocalVisibility } = useSWR(
|
||||
`${chatId}-visibility`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue