Add Vite API proxy and harden admin HTTP client.

Support relative API base URL in development, clearer network errors, and ASCII phone digits on login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 11:50:19 +02:00
co-authored by Cursor
parent 43ebebd8c4
commit 47c7d1dc27
5 changed files with 405 additions and 65 deletions
+2
View File
@@ -0,0 +1,2 @@
# Same-origin in dev (Vite proxies to the real API — avoids CORS)
VITE_API_BASE_URL=/server/api