client/src/config.js
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 10:53:15 +0100
changeset 183 f8f3af9e5c83
parent 130 78246db1cbac
permissions -rw-r--r--
Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain On the filter, adapt to take into account new version of django_filters
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
54
fad489be9c77 add some config values
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
// define application configuration
fad489be9c77 add some config values
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
fad489be9c77 add some config values
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
export default {
87
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 54
diff changeset
     4
  apiRootUrl: process.env.REACT_APP_API_ROOT_URL || 'http://localhost:8000',
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 54
diff changeset
     5
  basename: process.env.REACT_APP_BASENAME || '',
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 54
diff changeset
     6
  networkStatusTimeout: parseInt(process.env.REACT_APP_NETWORK_STATUS_TIMEOUT, 10) || 2000,
130
78246db1cbac make synchronization recurent, improve synchronization status display
ymh <ymh.work@gmail.com>
parents: 97
diff changeset
     7
  networkStatusInterval: parseInt(process.env.REACT_APP_NETWORK_STATUS_INTERVAL, 10) || 2000,
78246db1cbac make synchronization recurent, improve synchronization status display
ymh <ymh.work@gmail.com>
parents: 97
diff changeset
     8
  syncInterval: parseInt(process.env.REACT_APP_SYNC_INTERVAL, 10) || 20000,
54
fad489be9c77 add some config values
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
}