chore: add Vite dev proxy and backend healthcheck

This commit is contained in:
Admin
2026-05-28 00:21:30 +05:00
parent 3382a43e8d
commit 5a6ddfcf61
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -10,6 +10,12 @@ services:
restart: unless-stopped
networks:
- coolify
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3001/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
+8
View File
@@ -10,4 +10,12 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
})