feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user