打通前后端联调链路

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-04-26 15:15:19 +08:00
parent 91226fa976
commit 83d9a08b97
8 changed files with 156 additions and 68 deletions

View File

@@ -18,7 +18,8 @@ export default defineConfig(({ mode }) => ({
},
proxy: {
'/api': {
target: process.env.VITE_API_BASE_URL || 'http://host.docker.internal:80',
// 开发环境:通过 Docker 网络直接访问网关容器
target: process.env.VITE_API_BASE_URL || 'http://api-gateway',
changeOrigin: true,
secure: false,
},