feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件

This commit is contained in:
2025-09-23 10:32:35 +08:00
parent 10ddfd6f75
commit 408b500b6a
199 changed files with 16850 additions and 34874 deletions
+20
View File
@@ -0,0 +1,20 @@
/**
* 开发代理配置(仅 dev 生效)
* - 统一网关转发:仅代理 /api- 前缀到网关(/api-user、/api-uaa 等)
* - 生产环境由网关/容器转发,此文件不生效
*/
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://127.0.0.1:9900';
export default {
dev: {
// 单一规则覆盖所有微服务前缀:/api-*
'/api-': { target: GATEWAY, changeOrigin: true },
},
test: {
'/api-': { target: GATEWAY, changeOrigin: true },
},
pre: {
'/api-': { target: GATEWAY, changeOrigin: true },
},
} as const;