API Update

This commit is contained in:
Bhagwan Singh 2025-12-04 12:55:01 +05:30
parent 92e8c15023
commit 2c4e158d67
4 changed files with 8 additions and 5 deletions

View File

@ -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": {

View File

@ -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,
});

View File

@ -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 }
);

View File

@ -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,