mirror of https://gitlab.com/m3f_usm/SmartStopAPK
feat: default values for remote config
parent
a7a565ceb6
commit
a5a57f8110
|
@ -14,14 +14,14 @@ const useRemoteConfig = () => {
|
|||
minimumFetchIntervalMillis: ONE_HOUR,
|
||||
});
|
||||
|
||||
// TODO: Add default values for remote config
|
||||
await remoteConfig().setDefaults({
|
||||
BASE_URL: '',
|
||||
HEADER_IMAGE_URL: '',
|
||||
USER: '',
|
||||
PASS: '',
|
||||
CHANGE_PAGE_INTERVAL: 0, // in miliseconds
|
||||
UPDATE_BUSES_LIST_INTERVAL: 0, // in miliseconds
|
||||
BASE_URL: 'https://transporte.hz.kursor.cl',
|
||||
HEADER_IMAGE_URL:
|
||||
'https://cdn-icons-png.flaticon.com/512/8371/8371047.png',
|
||||
USER: 'usuario1',
|
||||
PASS: 'usuario1',
|
||||
CHANGE_PAGE_INTERVAL: 20000, // in miliseconds
|
||||
UPDATE_BUSES_LIST_INTERVAL: 600000, // in miliseconds
|
||||
});
|
||||
|
||||
await remoteConfig().fetchAndActivate();
|
||||
|
|
Loading…
Reference in New Issue