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
+9
View File
@@ -20,4 +20,13 @@ export default defineConfig(({ mode }) => ({
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
proxy: {
'/server/api': {
target: 'https://parche.montech.ir',
changeOrigin: true,
secure: true,
},
},
},
}))