File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,13 @@ export default {
195
195
url : process . env . COMMANDS_REDISBLOOM_URL
196
196
|| 'https://raw.githubusercontent.com/RedisBloom/RedisBloom/master/commands.json' ,
197
197
} ,
198
+ {
199
+ name : 'triggers_and_functions' ,
200
+ url : process . env . COMMANDS_TRIGGERS_AND_FUNCTIONS_URL
201
+ || 'https://raw.githubusercontent.com/RedisGears/RedisGears/master/commands.json' ,
202
+ defaultUrl : process . env . COMMANDS_TRIGGERS_AND_FUNCTIONS_DEFAULT_URL
203
+ || 'https://s3.amazonaws.com/redisinsight.download/public/commands/triggers_and_functions.json' ,
204
+ } ,
198
205
] ,
199
206
connections : {
200
207
timeout : parseInt ( process . env . CONNECTIONS_TIMEOUT_DEFAULT , 10 ) || 30 * 1_000 , // 30 sec
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ const COMMANDS_CONFIG = get('commands');
8
8
9
9
async function init ( ) {
10
10
try {
11
- await Promise . all ( COMMANDS_CONFIG . map ( async ( { name, url } ) => {
11
+ await Promise . all ( COMMANDS_CONFIG . map ( async ( { name, url, defaultUrl } ) => {
12
12
try {
13
13
console . log ( `Trying to get ${ name } commands...` ) ;
14
- const { data } = await axios . get ( url , {
14
+ const { data } = await axios . get ( defaultUrl || url , {
15
15
responseType : 'text' ,
16
16
transformResponse : [ ( raw ) => raw ] ,
17
17
} ) ;
You can’t perform that action at this time.
0 commit comments