config.prod.js 625 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict';
  2. const { readConfigFile } = require('../utils/config');
  3. const configDeault = readConfigFile();
  4. /**
  5. * 生产环境配置,覆盖 config.default.js
  6. */
  7. module.exports = (appInfo) => {
  8. const config = {};
  9. /**
  10. * 开发者工具
  11. */
  12. config.openDevTools = configDeault.debug;
  13. /**
  14. * 应用程序顶部菜单
  15. */
  16. config.openAppMenu = false;
  17. /**
  18. * jobs
  19. */
  20. config.jobs = {
  21. messageLog: false
  22. };
  23. /**
  24. * 远程模式-web地址
  25. */
  26. config.remoteUrl = {
  27. enable: configDeault.remoteUrl || false,
  28. url: 'http://localhost:3000/#/home'
  29. };
  30. return {
  31. ...config
  32. };
  33. };