mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-04 01:28:51 +01:00
fix: frontend api request shouldn't hard code the domain and port.
This commit is contained in:
parent
06c99154ac
commit
c5c865a25f
8 changed files with 11 additions and 11 deletions
|
|
@ -10,10 +10,10 @@ export default function ClearConvos() {
|
|||
const dispatch = useDispatch();
|
||||
const { mutate } = useSWRConfig();
|
||||
|
||||
const { trigger } = manualSWR(`http://localhost:3080/api/convos/clear`, 'post', () => {
|
||||
const { trigger } = manualSWR(`/api/convos/clear`, 'post', () => {
|
||||
dispatch(setMessages([]));
|
||||
dispatch(setNewConvo());
|
||||
mutate(`http://localhost:3080/api/convos`);
|
||||
mutate(`/api/convos`);
|
||||
});
|
||||
|
||||
const clickHandler = () => {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default function Nav() {
|
|||
};
|
||||
|
||||
const { data, isLoading, mutate } = swr(
|
||||
`http://localhost:3080/api/convos?pageNumber=${pageNumber}`,
|
||||
`/api/convos?pageNumber=${pageNumber}`,
|
||||
onSuccess
|
||||
);
|
||||
const containerRef = useRef(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue