chore(config): add local 192.168.197.1 config and switch default env

1. 新增192.168.197.1:8050的本地开发配置项
2. 调整默认启用的环境配置为local-1
3. 修复package.json缩进格式并新增对应局域网调试的H5打包配置
This commit is contained in:
2026-08-04 16:19:19 +08:00
parent e01ba29604
commit d4326bc827
2 changed files with 99 additions and 85 deletions

View File

@@ -56,9 +56,12 @@ const localDevConfig = ({
}, },
'local-1': { // 测试平台 'local-1': { // 测试平台
uniacid: 1, uniacid: 1,
domain: 'http://192.168.197.1:8050/', domain: 'http://localhost:8050/',
// domain: 'http://localhost:8050/',
}, },
'192.168.197.1-1': { // 测试平台
uniacid: 1,
domain: 'http://192.168.197.1:8050/',
},
'local-11': { // 测试平台 'local-11': { // 测试平台
uniacid: 11, uniacid: 11,
domain: 'http://localhost:8050/', domain: 'http://localhost:8050/',
@@ -164,9 +167,10 @@ const localDevConfig = ({
// })['2724']; // 生物菌肥 // })['2724']; // 生物菌肥
// })['2811']; // 选择要使用的环境配置 // })['2811']; // 选择要使用的环境配置
// })['local-11']; // 选择要使用的环境配置 // })['local-11']; // 选择要使用的环境配置
})['248']; // 本地 // })['248']; // 本地
// })['local-2']; // 本地 // })['local-2']; // 本地
// })['local-11']; // 本地 // })['local-11']; // 本地
})['local-1']; // 本地
// })['1-test']; // test // })['1-test']; // test
// })['test-12']; // test // })['test-12']; // test
export default localDevConfig; export default localDevConfig;

View File

@@ -1,82 +1,92 @@
{ {
"scripts": { "scripts": {
"mp-weixin": "node scripts/mp-weixin.patch.js", "mp-weixin": "node scripts/mp-weixin.patch.js",
"i18n:check": "node scripts/i18n-check.js", "i18n:check": "node scripts/i18n-check.js",
"test": "node scripts/test-gate.js", "test": "node scripts/test-gate.js",
"test:util": "node --test tests/util.test.js", "test:util": "node --test tests/util.test.js",
"prebuild": "npm run test", "prebuild": "npm run test",
"prestart": "npm run test" "prestart": "npm run test"
}, },
"devDependencies": { "devDependencies": {
"dart-sass": "^1.25.0", "dart-sass": "^1.25.0",
"terser-webpack-plugin": "^5.3.10", "terser-webpack-plugin": "^5.3.10",
"zion-uniapp-mp-load-package": "^1.0.13" "zion-uniapp-mp-load-package": "^1.0.13"
}, },
"dependencies": { "dependencies": {
"jweixin-module": "^1.6.0" "jweixin-module": "^1.6.0"
}, },
"uni-app": { "uni-app": {
"scripts": { "scripts": {
"weixin": { "weixin": {
"title": "微信小程序自定义发行", "title": "微信小程序自定义发行",
"env": { "env": {
"UNI_PLATFORM": "mp-weixin" "UNI_PLATFORM": "mp-weixin"
}, },
"define": { "define": {
"MP_WEIXIN": true, "MP_WEIXIN": true,
"PRODUCTION": true "PRODUCTION": true
} }
}, },
"h5-xcx20.5g-quickapp.com": { "h5-xcx20.5g-quickapp.com": {
"title": "H5-xcx20.5g-quickapp.com", "title": "H5-xcx20.5g-quickapp.com",
"env": { "env": {
"UNI_PLATFORM": "h5", "UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "https://xcx20.5g-quickapp.com/" "UNI_APP_DOMAIN": "https://xcx20.5g-quickapp.com/"
}, },
"define": { "define": {
"PRODUCTION": true "PRODUCTION": true
} }
}, },
"h5-xcx.aigc-quickapp.com": { "h5-xcx.aigc-quickapp.com": {
"title": "H5-xcx.aigc-quickapp.com", "title": "H5-xcx.aigc-quickapp.com",
"env": { "env": {
"UNI_PLATFORM": "h5", "UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "https://xcx.aigc-quickapp.com/" "UNI_APP_DOMAIN": "https://xcx.aigc-quickapp.com/"
}, },
"define": { "define": {
"PRODUCTION": true "PRODUCTION": true
} }
}, },
"h5-5g.aigc-quickapp.com": { "h5-5g.aigc-quickapp.com": {
"title": "H5-5g.aigc-quickapp.com", "title": "H5-5g.aigc-quickapp.com",
"env": { "env": {
"UNI_PLATFORM": "h5", "UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "https://5g.aigc-quickapp.com/" "UNI_APP_DOMAIN": "https://5g.aigc-quickapp.com/"
}, },
"define": { "define": {
"PRODUCTION": true "PRODUCTION": true
} }
}, },
"h5-test.aigc-quickapp.com": { "h5-test.aigc-quickapp.com": {
"title": "H5-test.aigc-quickapp.com", "title": "H5-test.aigc-quickapp.com",
"env": { "env": {
"UNI_PLATFORM": "h5", "UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "https://test.aigc-quickapp.com/" "UNI_APP_DOMAIN": "https://test.aigc-quickapp.com/"
}, },
"define": { "define": {
"PRODUCTION": true "PRODUCTION": true
} }
}, },
"http://localhost:8050/": { "http://localhost:8050/": {
"title": "H5-localhost:8050", "title": "H5-localhost:8050",
"env": { "env": {
"UNI_PLATFORM": "h5", "UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "http://localhost:8050/" "UNI_APP_DOMAIN": "http://localhost:8050/"
}, },
"define": { "define": {
"PRODUCTION": true "PRODUCTION": true
} }
} },
} "http://192.168.8.118:8050/": {
} "title": "H5-192.168.8.118:8050",
} "env": {
"UNI_PLATFORM": "h5",
"UNI_APP_DOMAIN": "http://192.168.8.118:8050/"
},
"define": {
"PRODUCTION": true
}
}
}
}
}