diff --git a/api.js b/api.js index 17df1ac..5219d25 100644 --- a/api.js +++ b/api.js @@ -2,7 +2,7 @@ const got = require('got'); const { getEnvVar } = require('./env.js'); const fetchEvents = () => - got('http://localhost:8384/rest/events', { + got(getEnvVar('ST_URL','http://localhost:8384/rest/events'), { headers: { 'X-API-Key': getEnvVar('API_KEY','invalid') },