config.prod.js 603 B

1234567891011121314151617181920212223242526272829303132
  1. /* eslint valid-jsdoc: "off" */
  2. 'use strict';
  3. /**
  4. * @param {Egg.EggAppInfo} appInfo app info
  5. */
  6. module.exports = appInfo => {
  7. /**
  8. * built-in config
  9. * @type {Egg.EggAppConfig}
  10. **/
  11. const config = exports = {
  12. baseUrl: 'http://106.15.121.64/server',
  13. };
  14. // use for cookie sign key, should change to your own and keep security
  15. config.keys = appInfo.name + '_1586587199716_572';
  16. // add your middleware config here
  17. config.middleware = [];
  18. // add your user config here
  19. const userConfig = {
  20. // myAppName: 'egg',
  21. };
  22. return {
  23. ...config,
  24. ...userConfig,
  25. };
  26. };