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:
MythEclipse
2026-06-15 14:32:54 +07:00
co-authored by Claude
parent f675b86dc8
commit 41e0501e6b
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ assertRequiredEnv();
const app = new Elysia()
.use(cors({
origin: env.webAppUrl,
origin: env.allowedOrigins,
credentials: true,
}))
.use(metricsRoutes)