added the api for the real data

This commit is contained in:
2026-07-04 17:08:16 +05:30
parent 200831d19c
commit e6ad37b20f
22 changed files with 2854 additions and 1061 deletions

View File

@@ -17,7 +17,18 @@ export default defineConfig({
port: 3001,
strictPort: true,
host: true,
open: true
open: true,
// Proxy API calls through Vite so the browser makes same-origin requests.
// This sidesteps the backend's localhost-only CORS allowlist entirely —
// works whether you open the app on localhost, a LAN IP, or a hostname.
proxy: {
// Change `target` if you point the dev app at a different backend.
'/api': {
target: 'https://api.doormile.com',
changeOrigin: true,
secure: true
}
}
}
});