From 2c4e158d673d5e312324c495f9d74cb3dbdfa6bd Mon Sep 17 00:00:00 2001 From: Bhagwan Singh Date: Thu, 4 Dec 2025 12:55:01 +0530 Subject: [PATCH] API Update --- package.json | 7 +++++-- src/electron/api/axiosClient.ts | 2 +- src/electron/utils/utilityFunctions.ts | 2 +- src/ui/layout/DashboardLayout.tsx | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3a8865e..d67e40a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "tsc && vite build", "preview": "vite preview", "transpile:electron": "tsc --project src/electron/tsconfig.json", - "dist:mac": "npm run transpile:electron && npm run build && electron-builder --mac --x64 --arm64", + "dist:mac": "npm run transpile:electron && npm run build && electron-builder --mac --universal", "dist:win": "npm run transpile:electron && npm run build && electron-builder --win --x64", "dist:linux": "npm run transpile:electron && npm run build && electron-builder --linux --x64", "test:e2e": "playwright test", @@ -72,7 +72,10 @@ ], "mac": { "target": [ - "dmg" + { + "target": "dmg", + "arch": "universal" + } ], "icon": "build/icon.icns", "extendInfo": { diff --git a/src/electron/api/axiosClient.ts b/src/electron/api/axiosClient.ts index c4662a1..0060ea6 100644 --- a/src/electron/api/axiosClient.ts +++ b/src/electron/api/axiosClient.ts @@ -12,7 +12,7 @@ const httpsAgent = new https.Agent({ }); const api: AxiosInstance = axios.create({ - baseURL: 'https://quality-friendly-goldfish.ngrok-free.app/api/v1/va', // 🔁 your backend + baseURL: 'https://daniela-nonprofessed-boastfully.ngrok-free.app/api/v1/va', // 🔁 your backend httpsAgent // timeout: 10000, }); diff --git a/src/electron/utils/utilityFunctions.ts b/src/electron/utils/utilityFunctions.ts index c09a7ab..0a15c7d 100644 --- a/src/electron/utils/utilityFunctions.ts +++ b/src/electron/utils/utilityFunctions.ts @@ -68,7 +68,7 @@ export const handleLogin = async (credentials: { email: string, password: string try { console.log("➡️ Calling API..."); const response = await axios.post( - 'https://quality-friendly-goldfish.ngrok-free.app/api/v1/va/login', + 'https://daniela-nonprofessed-boastfully.ngrok-free.app/api/v1/va/login', { userDetails: { ...credentials } }, { headers: { "ngrok-skip-browser-warning": 69420 }, httpsAgent } ); diff --git a/src/ui/layout/DashboardLayout.tsx b/src/ui/layout/DashboardLayout.tsx index 4eef5d3..f7909fb 100644 --- a/src/ui/layout/DashboardLayout.tsx +++ b/src/ui/layout/DashboardLayout.tsx @@ -534,7 +534,7 @@ const DashboardLayout = () => { if (!selectedProject?.projectId) return console.log(selectedProject?.projectId, "SelectedProject ID") - socketRef.current = io("https://quality-friendly-goldfish.ngrok-free.app", { + socketRef.current = io("https://daniela-nonprofessed-boastfully.ngrok-free.app", { transports: ["websocket"], secure: true, rejectUnauthorized: false,