fix(android): Use correct API URL veridian.runfoo.run/api for APK
This commit is contained in:
parent
57c70b91db
commit
44f1939b2b
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import { useAuth } from '../../context/AuthContext';
|
|||
// Detect Capacitor environment for API URL
|
||||
const isCapacitor = typeof window !== 'undefined' && !!(window as any).Capacitor?.isNativePlatform?.();
|
||||
const API_BASE_URL = isCapacitor
|
||||
? 'https://api.veridian.runfoo.run/api'
|
||||
? 'https://veridian.runfoo.run/api'
|
||||
: (import.meta.env.VITE_API_URL || '/api');
|
||||
|
||||
const SESSION_TIMEOUT = 60 * 60 * 1000; // 1 hour
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const isCapacitor = typeof window !== 'undefined' && !!(window as any).Capacitor
|
|||
|
||||
// Production API URL for native app, relative URL for web
|
||||
const API_BASE_URL = isCapacitor
|
||||
? 'https://api.veridian.runfoo.run/api'
|
||||
? 'https://veridian.runfoo.run/api'
|
||||
: (import.meta.env.VITE_API_URL || '/api');
|
||||
|
||||
// Retry configuration
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue