We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c84f9b commit dec1454Copy full SHA for dec1454
utils/config/config.go
@@ -41,7 +41,14 @@ func LoadIntoENV() {
41
ENV.PORT = strconv.Itoa(config.Int("server.port"))
42
43
ENV.API_URL = config.String("api.url")
44
- ENV.API_TOKENS = config.Strings("api.tokens")
+
45
+ apiTokens := config.Strings("api.tokens")
46
47
+ if len(apiTokens) <= 0 {
48
+ apiTokens = config.Strings("api.token")
49
+ }
50
51
+ ENV.API_TOKENS = apiTokens
52
53
ENV.BLOCKED_ENDPOINTS = config.Strings("blockedendpoints")
54
0 commit comments