feat: init (#36)

Co-authored-by: qingsong.sqs <qingsong.sqs@alibaba-inc.com>
This commit is contained in:
瓦尔登湖畔一棵松(GreatPine)
2021-11-13 15:52:51 +08:00
committed by GitHub
parent d73d9b2793
commit 21c2c3a2ef
393 changed files with 26846 additions and 28456 deletions

37
frontend/config/proxy.js Normal file
View File

@@ -0,0 +1,37 @@
/**
* 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
* -------------------------------
* The agent cannot take effect in the production environment
* so there is no configuration of the production environment
* For details, please see
* https://pro.ant.design/docs/deploy
*/
export default {
dev: {
'/api/': {
target: 'http://101.201.65.66:8080/',
changeOrigin: true,
pathRewrite: {
'/api': '',
},
},
},
test: {
'/api/': {
target: 'https://preview.pro.ant.design',
changeOrigin: true,
pathRewrite: {
'^': '',
},
},
},
pre: {
'/api/': {
target: 'your pre url',
changeOrigin: true,
pathRewrite: {
'^': '',
},
},
},
};