client/src/config.js
author Alexandre Segura <mex.zktk@gmail.com>
Tue, 27 Jun 2017 18:11:40 +0200
changeset 99 18fa4a1fa9e9
parent 97 69eaef18b01b
child 130 78246db1cbac
permissions -rw-r--r--
Add group endpoint.

// define application configuration

export default {
  apiRootUrl: process.env.REACT_APP_API_ROOT_URL || 'http://localhost:8000',
  basename: process.env.REACT_APP_BASENAME || '',
  networkStatusTimeout: parseInt(process.env.REACT_APP_NETWORK_STATUS_TIMEOUT, 10) || 2000,
  networkStatusInterval: parseInt(process.env.REACT_APP_NETWORK_STATUS_INTERVAL, 10) || 20000,
}