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