增加docker配置
Change-Id: I9fa70e1256227f84973fc1bf5d5175e57f5cd225
diff --git a/config/config.ts b/config/config.ts
index f0004a8..511894a 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -8,6 +8,7 @@
const { REACT_APP_ENV = 'dev' } = process.env;
export default defineConfig({
+
/**
* @name 开启 hash 模式
* @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。
diff --git a/config/oneapi.json b/config/oneapi.json
index c77d988..064e6b7 100644
--- a/config/oneapi.json
+++ b/config/oneapi.json
@@ -4,12 +4,13 @@
"title": "Ant Design Pro",
"version": "1.0.0"
},
+
"servers": [
{
- "url": "http://localhost:8000/"
+ "url": "http://localhost:3004/"
},
{
- "url": "https://localhost:8000/"
+ "url": "https://localhost:3004/"
}
],
"paths": {
diff --git a/config/proxy.ts b/config/proxy.ts
index c290c6a..a812e74 100644
--- a/config/proxy.ts
+++ b/config/proxy.ts
@@ -12,17 +12,17 @@
export default {
// 如果需要自定义本地开发服务器 请取消注释按需调整
dev: {
- // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
+ // localhost:5004/api/** -> https://preview.pro.ant.design/api/**
'/api/': {
// 要代理的地址
- target: 'http://localhost:8080',
+ target: 'http://localhost:5004',
// 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/profile/avatar/': {
- target: 'http://localhost:8080',
+ target: 'http://localhost:5004',
changeOrigin: true,
}
},
@@ -32,7 +32,7 @@
* @doc https://github.com/chimurai/http-proxy-middleware
*/
test: {
- // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
+ // localhost:5004/api/** -> https://preview.pro.ant.design/api/**
'/api/': {
target: 'https://proapi.azurewebsites.net',
changeOrigin: true,