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:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user