pref:打包命令统一

fix/0714-ch
ch 2 years ago
parent c7199f96db
commit 99c6010bb7

@ -28,7 +28,6 @@ const envConfig = {
imUrl : 'wss://you-gateway.mashibing.com' imUrl : 'wss://you-gateway.mashibing.com'
} }
} }
const branch = getRepoInfo().branch; // 调用获取git信息
let curEnvConfig = null; let curEnvConfig = null;
const argv = global.process.argv; const argv = global.process.argv;
for(key in envConfig){ for(key in envConfig){

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-03 22:14:16 * @Date: 2022-05-03 22:14:16
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-07-07 17:31:39 * @LastEditTime: 2022-07-15 11:39:08
* @Description: file content * @Description: file content
*/ */
export default { export default {
@ -79,19 +79,19 @@ export default {
}, },
axios: { axios: {
// 表示开启代理 // 表示开启代理
proxy: true, // proxy: true,
}, },
proxy: { proxy: {
'/mall/': { // '/mall/': {
target: 'https://you-gateway.mashibing.com/', // 目标接口域名 // target: 'https://you-gateway.mashibing.com/', // 目标接口域名
// target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名 // // target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名
pathRewrite: { // pathRewrite: {
changeOrigin: true, // 表示是否跨域 // changeOrigin: true, // 表示是否跨域
}, // },
}, // },
}, },
server: { server: {
port: 3000, // default: 3000 port: 3000,
host: '0.0.0.0' // default: localhost, host: '0.0.0.0'
}, },
} }

@ -3,9 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "node env.config.js & nuxt", "server": "node env.config.js & nuxt",
"dev:beta": "node env.config.js --ENV:beta & nuxt", "server:beta": "node env.config.js --ENV:beta & nuxt",
"dev:prod": "node env.config.js --ENV:prod & nuxt", "server:prod": "node env.config.js --ENV:prod & nuxt",
"build:test": "node env.config.js --ENV:test & nuxt build", "build:test": "node env.config.js --ENV:test & nuxt build",
"build:beta": "node env.config.js --ENV:beta & nuxt build", "build:beta": "node env.config.js --ENV:beta & nuxt build",
"build:prod": "node env.config.js --ENV:prod & nuxt build", "build:prod": "node env.config.js --ENV:prod & nuxt build",

Loading…
Cancel
Save