Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: allow setting ISSUES_HOST

thecodrr1f6088a8641e
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 5cc56b00e..df334f013 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -192,7 +192,7 @@ class Database {
/**
*
- * @param {{AUTH_HOST: string, API_HOST: string, SSE_HOST: string, SUBSCRIPTIONS_HOST: string}} hosts
+ * @param {{AUTH_HOST: string, API_HOST: string, SSE_HOST: string, SUBSCRIPTIONS_HOST: string, ISSUES_HOST: string}} hosts
*/
host(hosts) {
if (process.env.NODE_ENV !== "production") {
@@ -201,6 +201,7 @@ class Database {
Constants.SSE_HOST = hosts.SSE_HOST || Constants.SSE_HOST;
Constants.SUBSCRIPTIONS_HOST =
hosts.SUBSCRIPTIONS_HOST || Constants.SUBSCRIPTIONS_HOST;
+ Constants.ISSUES_HOST = hosts.ISSUES_HOST || Constants.ISSUES_HOST;
}
}