build/config.js

  1. /** @module project/build/config */
  2. /** backend
  3. * @property {object} backend
  4. * @property {string} backend.hostname='0.0.0.0'
  5. * @property {number} backend.port=7102
  6. */
  7. const backend = {
  8. port: 7102,
  9. hostname: '0.0.0.0',
  10. // maintenance: false,
  11. maintenance: true,
  12. };
  13. /** front
  14. * @property {object} front
  15. * @property {object} front.build - npm run build:front
  16. * @property {boolean} front.build.productionSourceMap=true
  17. * @property {boolean} front.build.uglify=true
  18. * @property {object} front.dev - npm run dev:front
  19. * @property {string} front.dev.hostname='localhost'
  20. * @property {number} front.dev.port=9192
  21. * @property {string} front.dev.proxyBaseURL='http://localhost:7102'
  22. */
  23. const front = {
  24. build: {
  25. productionSourceMap: true,
  26. uglify: true,
  27. },
  28. dev: {
  29. // hostname: 'localhost',
  30. // hostname: 'b.test.com',
  31. // hostname: '192.168.0.100',
  32. // hostname: '192.168.0.102',
  33. port: 9192,
  34. // proxyBaseURL: 'http://localhost:7102',
  35. },
  36. };
  37. module.exports = {
  38. front,
  39. backend,
  40. };