+api rework

This commit is contained in:
2025-12-30 20:08:48 +03:00
parent 9ed3a5992d
commit 45c077b928
9 changed files with 44 additions and 15 deletions

View File

@@ -6,13 +6,16 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true
target: 'http://127.0.0.1:8000',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, '/api')
},
'/ws': {
target: 'ws://localhost:8000',
target: 'ws://127.0.0.1:8000',
ws: true,
changeOrigin: true
changeOrigin: true,
secure: false
}
}
}