config.js 522 B

1234567891011121314151617
  1. 'use strict'
  2. import path from 'path'
  3. export const PRODUCTION_MODE = process.env.NODE_ENV === 'production'
  4. // The url prefix for the API
  5. export const apiPrefix = '/api'
  6. // The port used by the server
  7. export const serverPort = parseInt(process.env.PORT, 10) || 5000
  8. // The directory where the images are stored (do not edit it)
  9. export const imagesPath = path.resolve(__dirname, 'images')
  10. // Should the server serve client files from the `/dist` directory
  11. export const serveClient = process.env.SERVE_CLIENT === 'true'