Skip to content

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

core: add host for monograph server

Abdullah Atta0bb2345ccb80
diff --git a/packages/core/src/api/index.ts b/packages/core/src/api/index.ts
index a7280f5e4..bf6775e19 100644
--- a/packages/core/src/api/index.ts
+++ b/packages/core/src/api/index.ts
@@ -431,6 +431,7 @@ class Database {
Hosts.SUBSCRIPTIONS_HOST =
hosts.SUBSCRIPTIONS_HOST || Hosts.SUBSCRIPTIONS_HOST;
Hosts.ISSUES_HOST = hosts.ISSUES_HOST || Hosts.ISSUES_HOST;
+ Hosts.MONOGRAPH_HOST = hosts.MONOGRAPH_HOST || Hosts.MONOGRAPH_HOST;
}
version() {
diff --git a/packages/core/src/utils/constants.ts b/packages/core/src/utils/constants.ts
index 3802724bf..865000eb2 100644
--- a/packages/core/src/utils/constants.ts
+++ b/packages/core/src/utils/constants.ts
@@ -46,7 +46,8 @@ export const hosts = {
: "http://localhost:9264",
ISSUES_HOST: isProduction()
? "https://issues.streetwriters.co"
- : "http://localhost:2624"
+ : "http://localhost:2624",
+ MONOGRAPH_HOST: isProduction() ? "https://monogr.ph" : "http://localhost:6264"
};
export default hosts;
@@ -57,7 +58,8 @@ const HOSTNAMES = {
[extractHostname(hosts.SSE_HOST)]: "Eventing Server",
[extractHostname(hosts.SUBSCRIPTIONS_HOST)]:
"Subscriptions Management Server",
- [extractHostname(hosts.ISSUES_HOST)]: "Bug Reporting Server"
+ [extractHostname(hosts.ISSUES_HOST)]: "Bug Reporting Server",
+ [extractHostname(hosts.MONOGRAPH_HOST)]: "Monograph Server"
};
export const getServerNameFromHost = (host: string) => {