prod.env.js 390 B

123456789101112131415161718
  1. 'use strict'
  2. let params = process.argv[2]
  3. let baseUrl = ''
  4. switch (params) {
  5. case 'uat':
  6. baseUrl = '"https://uat.jzmall.lifejingzhi.com/wx/"'
  7. break
  8. case 'prod':
  9. baseUrl = '"https://jzmall.lifejingzhi.com/wx/"'
  10. break
  11. default:
  12. baseUrl = '"https://jzmall.lifejingzhi.com/wx/"'
  13. }
  14. module.exports = {
  15. NODE_ENV: '"production"',
  16.  baseUrl: baseUrl
  17. }