A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: allow overriding SUBSCRIPTIONS_HOST
thecodrrb701eec8ab26
diff --git a/packages/core/api/index.js b/packages/core/api/index.jsindex d94f47822..e7a42758d 100644--- a/packages/core/api/index.js+++ b/packages/core/api/index.js@@ -183,13 +183,15 @@ class Database {/***- * @param {{AUTH_HOST: string, API_HOST: string, SSE_HOST: string}} hosts+ * @param {{AUTH_HOST: string, API_HOST: string, SSE_HOST: string, SUBSCRIPTIONS_HOST: string}} hosts*/host(hosts) {if (process.env.NODE_ENV !== "production") {Constants.AUTH_HOST = hosts.AUTH_HOST || Constants.AUTH_HOST;Constants.API_HOST = hosts.API_HOST || Constants.API_HOST;Constants.SSE_HOST = hosts.SSE_HOST || Constants.SSE_HOST;+ Constants.SUBSCRIPTIONS_HOST =+ hosts.SUBSCRIPTIONS_HOST || Constants.SUBSCRIPTIONS_HOST;}}