mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-22 17:23:52 -05:00
Try setting config for dual deployment
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"API_PREFIX": "",
|
||||
"HOME_ASSISTANT_TOKEN": "",
|
||||
"HOME_ASSISTANT_URL": "",
|
||||
"GARAGE_DEVICE": "",
|
||||
"ALARM_DEVICE": ""
|
||||
}
|
||||
@@ -1,23 +1,21 @@
|
||||
import config from './config.json';
|
||||
|
||||
export default class Environment {
|
||||
public static getUrlPrefix(): string {
|
||||
return config.API_PREFIX;
|
||||
return '%API_PREFIX%';
|
||||
}
|
||||
|
||||
public static getHomeAssistantUrl(): string {
|
||||
return config.HOME_ASSISTANT_URL;
|
||||
return '%HOME_ASSISTANT_URL%';
|
||||
}
|
||||
|
||||
public static getHomeAssistantToken(): string {
|
||||
return config.HOME_ASSISTANT_TOKEN;
|
||||
return '%HOME_ASSISTANT_TOKEN%';
|
||||
}
|
||||
|
||||
public static getGarageDevice(): string {
|
||||
return config.GARAGE_DEVICE;
|
||||
return '%GARAGE_DEVICE%';
|
||||
}
|
||||
|
||||
public static getAlarmDevice(): string {
|
||||
return config.ALARM_DEVICE;
|
||||
return '%ALARM_DEVICE%';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user