12345678910111213141516171819202122232425262728293031 |
- let configs = {
- baseUrl: 'localhost',
- isProduction: false,
- apis: {
- sz: '',
- }
- };
- if (process.env.NODE_ENV === 'development') {
- // 测试环境
- configs = Object.assign(configs, {
- // baseUrl: 'http://app.sunzee.com.cn:8090/cleanMachineServer',
- baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
- // baseUrl: 'http://127.0.0.1:8090/cleanMachineServer',
- // baseUrl:'http://sunzee.myqnapcloud.com:8090/cleanMachineServer'
- // baseUrl:'http://192.168.0.184:8090/cleanMachineServer'
- // baseUrl: 'https://clean.sunzee.com.cn/cleanMachineServer',
- });
- }
- if (process.env.NODE_ENV === 'production') {
- // 生产环境
- configs = Object.assign(configs, {
- // baseUrl: 'https://app.sunzee.com.cn/cleanMachineServer',
- // baseUrl: 'http://app.sunzee.com.cn:8090/cleanMachineServer',
- baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
- // isProduction: true,
- });
- }
- export default configs;
|