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