refactor(config): use Vite proxy for API requests and change backend port

- Configure Vite dev server to proxy /v1 requests to backend
- Change backend port from 8000 to 8001
- Simplify API URLs to relative paths instead of absolute localhost URLs
- Increase debounce delay from 500ms to 1000ms for better stability
- Update README documentation to reflect all changes
This commit is contained in:
2026-02-15 23:23:00 +08:00
parent 1e58c18bbc
commit eb6e8bbfff
4 changed files with 16 additions and 23 deletions
+7 -1
View File
@@ -5,7 +5,13 @@ export default defineConfig({
plugins: [vue()],
server: {
host: true,
port: 5173
port: 5173,
proxy: {
'/v1': {
target: 'http://localhost:8001',
changeOrigin: true
}
}
},
build: {
rollupOptions: {