Commit c9efefea5d0ba483a454c1446cfea4f0fc77701d
1 parent
aefd149f
feat: 开发期刊推荐,prod2.sh-30/31
Showing
2 changed files
with
6 additions
and
6 deletions
deploy/prod2.sh
nuxt.config.ts
... | ... | @@ -41,8 +41,8 @@ export default defineNuxtConfig({ |
41 | 41 | nitro: { |
42 | 42 | devProxy: { |
43 | 43 | "/shop": { |
44 | - // target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
45 | - target: "http://127.0.0.1:8002/shop", | |
44 | + target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
45 | + // target: "http://127.0.0.1:8002/shop", | |
46 | 46 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
47 | 47 | changeOrigin: true, // 表示是否跨域 |
48 | 48 | }, |
... | ... | @@ -50,8 +50,8 @@ export default defineNuxtConfig({ |
50 | 50 | // 该配置用于服务端请求转发 |
51 | 51 | routeRules: { |
52 | 52 | "/shop/**": { |
53 | - // proxy: "http://47.89.254.121:8002/shop/**", | |
54 | - proxy: "http://127.0.0.1:8002/shop/**", | |
53 | + proxy: "http://47.89.254.121:8002/shop/**", | |
54 | + // proxy: "http://127.0.0.1:8002/shop/**", | |
55 | 55 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
56 | 56 | }, |
57 | 57 | }, | ... | ... |