We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a99970 commit fd28ebaCopy full SHA for fd28eba
ts/config.ts
@@ -170,11 +170,10 @@ export const contentRepoUrl = pipe(
170
E.getOrElse(() => DEFAULT_CONTENT_REPO_URL)
171
);
172
173
-export const newContentRepoUrl = pipe(
174
- Config.NEW_CONTENT_REPO_URL,
175
- NonEmptyString.decode,
176
- E.getOrElse(() => NEW_DEFAULT_CONTENT_REPO_URL)
177
-);
+export const newContentRepoUrl =
+ Config.NEW_CONTENT_REPO_URL && Config.NEW_CONTENT_REPO_URL.trim().length > 0
+ ? Config.NEW_CONTENT_REPO_URL.trim()
+ : NEW_DEFAULT_CONTENT_REPO_URL;
178
179
export const totMessageFetchWorkers = pipe(
180
parseInt(Config.TOT_MESSAGE_FETCH_WORKERS, 10),
0 commit comments