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:
+7
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user