Initial commit
This commit is contained in:
@@ -51,7 +51,8 @@ ALLOWED_HOSTS = ['*'] # 允许所有域名访问,生产环境建议修改为
|
||||
```javascript
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://192.168.5.81:8000', // 目标服务器地址
|
||||
// 目标服务器地址,优先使用环境变量 PROXY_TARGET,默认为 localhost
|
||||
target: process.env.PROXY_TARGET || 'http://127.0.0.1:8000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user