fix(backend,frontend): correct docker socket connection on windows and fix api proxy in vite config

This commit is contained in:
SaelixCode
2026-03-05 14:49:24 -05:00
parent 44acfd7d90
commit 4aa4bf1b80
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ class DockerController {
private docker: Docker;
private constructor() {
this.docker = new Docker({ socketPath: '/var/run/docker.sock' });
// Use default constructor to support both Windows named pipes and Linux sockets
this.docker = new Docker();
}
public static getInstance(): DockerController {
+8
View File
@@ -11,4 +11,12 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
})