fix(android): Use correct API URL veridian.runfoo.run/api for APK
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2026-01-06 22:48:57 -08:00
parent 57c70b91db
commit 44f1939b2b
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import { useAuth } from '../../context/AuthContext';
// Detect Capacitor environment for API URL // Detect Capacitor environment for API URL
const isCapacitor = typeof window !== 'undefined' && !!(window as any).Capacitor?.isNativePlatform?.(); const isCapacitor = typeof window !== 'undefined' && !!(window as any).Capacitor?.isNativePlatform?.();
const API_BASE_URL = isCapacitor const API_BASE_URL = isCapacitor
? 'https://api.veridian.runfoo.run/api' ? 'https://veridian.runfoo.run/api'
: (import.meta.env.VITE_API_URL || '/api'); : (import.meta.env.VITE_API_URL || '/api');
const SESSION_TIMEOUT = 60 * 60 * 1000; // 1 hour const SESSION_TIMEOUT = 60 * 60 * 1000; // 1 hour

View file

@ -5,7 +5,7 @@ const isCapacitor = typeof window !== 'undefined' && !!(window as any).Capacitor
// Production API URL for native app, relative URL for web // Production API URL for native app, relative URL for web
const API_BASE_URL = isCapacitor const API_BASE_URL = isCapacitor
? 'https://api.veridian.runfoo.run/api' ? 'https://veridian.runfoo.run/api'
: (import.meta.env.VITE_API_URL || '/api'); : (import.meta.env.VITE_API_URL || '/api');
// Retry configuration // Retry configuration