Fix Backend Link in OpenMemory (#2677)
This commit is contained in:
@@ -67,7 +67,7 @@ export const useAppsApi = (): UseAppsApiReturn => {
|
||||
const dispatch = useDispatch<AppDispatch>();
|
||||
const user_id = useSelector((state: RootState) => state.profile.userId);
|
||||
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000";
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
|
||||
|
||||
const fetchApps = useCallback(async (params: FetchAppsParams = {}): Promise<{ apps: App[], total: number }> => {
|
||||
const {
|
||||
|
||||
@@ -32,7 +32,7 @@ export const useFiltersApi = (): UseFiltersApiReturn => {
|
||||
const dispatch = useDispatch<AppDispatch>();
|
||||
const user_id = useSelector((state: RootState) => state.profile.userId);
|
||||
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000";
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
|
||||
|
||||
const fetchCategories = useCallback(async (): Promise<void> => {
|
||||
setIsLoading(true);
|
||||
|
||||
@@ -104,7 +104,7 @@ export const useMemoriesApi = (): UseMemoriesApiReturn => {
|
||||
const memories = useSelector((state: RootState) => state.memories.memories);
|
||||
const selectedMemory = useSelector((state: RootState) => state.memories.selectedMemory);
|
||||
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000";
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
|
||||
|
||||
const fetchMemories = useCallback(async (
|
||||
query?: string,
|
||||
|
||||
@@ -35,7 +35,7 @@ export const useStats = (): UseMemoriesApiReturn => {
|
||||
const dispatch = useDispatch<AppDispatch>();
|
||||
const user_id = useSelector((state: RootState) => state.profile.userId);
|
||||
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000";
|
||||
const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
|
||||
|
||||
const fetchStats = async () => {
|
||||
setIsLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user