fix(tauri): add absolute API base URL default and CORS origins for Android WebView
- Set VITE_API_BASE_URL default to production API URL in api-client.ts so fetch() uses absolute URLs instead of relative paths that fail on Tauri - Add tauri://localhost and https://tauri.localhost to API CORS allowed origins - Also fix .env WEB_APP_URL from stale .tech to .my.id Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ import type {
|
||||
} from '@zeavis/shared';
|
||||
import { recordApiCall } from './telemetry';
|
||||
|
||||
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL ?? '';
|
||||
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL ?? 'https://zeavisedu.asepharyana.my.id';
|
||||
|
||||
export interface ApiError extends Error {
|
||||
status: number;
|
||||
|
||||
Reference in New Issue
Block a user