mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
fix(backend,frontend): correct docker socket connection on windows and fix api proxy in vite config
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -11,4 +11,12 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user