Trim the env vars

master
Kuba Orlik 9 months ago
parent 03569ea123
commit a05d66fb43

@ -15,8 +15,8 @@ export const MAILCATCHER_API_PORT = parseInt(
process.env.SEALIOUS_MAILCATCHER_API_PORT || "1082"
);
export const MAILER = process.env.SEALIOUS_MAILER;
export const HA_TOKEN = process.env.HA_TOKEN;
export const HA_URL = process.env.HA_URL;
export const HA_TOKEN = process.env.HA_TOKEN?.trim();
export const HA_URL = process.env.HA_URL?.trim();
if (!HA_TOKEN) {
console.error("Please set HA_TOKEN env variable to communicate with Home Assistant");

Loading…
Cancel
Save