Commit 23c96d233fc7870459bdbcf8d9cb5de2ab21d694
1 parent
52595722
fix: prod2-62/63
Showing
2 changed files
with
10 additions
and
6 deletions
deploy/prod2.sh
nuxt.config.ts
... | ... | @@ -56,13 +56,15 @@ export default defineNuxtConfig({ |
56 | 56 | nitro: { |
57 | 57 | devProxy: { |
58 | 58 | "/shop": { |
59 | - target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
59 | + target: 'http://192.168.31.242:20740/', | |
60 | + // target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
60 | 61 | // target: "http://127.0.0.1:8002/shop", |
61 | 62 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
62 | 63 | changeOrigin: true, // 表示是否跨域 |
63 | 64 | }, |
64 | 65 | "/email": { |
65 | - target: "http://47.89.254.121:8002/email", // 线上代理地址 | |
66 | + target: 'http://192.168.31.242:20740/', | |
67 | + // target: "http://47.89.254.121:8002/email", // 线上代理地址 | |
66 | 68 | // target: "http://127.0.0.1:8002/shop", |
67 | 69 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
68 | 70 | changeOrigin: true, // 表示是否跨域 |
... | ... | @@ -77,12 +79,14 @@ export default defineNuxtConfig({ |
77 | 79 | // 该配置用于服务端请求转发 |
78 | 80 | routeRules: { |
79 | 81 | "/shop/**": { |
80 | - proxy: "http://47.89.254.121:8002/shop/**", | |
82 | + proxy: 'http://192.168.31.242:20740/', | |
83 | + // proxy: "http://47.89.254.121:8002/shop/**", | |
81 | 84 | // proxy: "http://127.0.0.1:8002/shop/**", |
82 | 85 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
83 | 86 | }, |
84 | 87 | "/email/**": { |
85 | - proxy: "http://47.89.254.121:8002/email/**", | |
88 | + proxy: 'http://192.168.31.242:20740/', | |
89 | + // proxy: "http://47.89.254.121:8002/email/**", | |
86 | 90 | // proxy: "http://127.0.0.1:8002/shop/**", |
87 | 91 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
88 | 92 | }, | ... | ... |